🔧 Only show the support dialog every tenth time
This commit is contained in:
@@ -411,7 +411,7 @@ var PreferencesDialog = class PreferencesDialog {
|
||||
const count = this._settings.get_int('prefs-open-count') + 1;
|
||||
this._settings.set_int('prefs-open-count', count);
|
||||
|
||||
// if (count % 10 == 0) {
|
||||
if (count % 10 == 0) {
|
||||
const dialog = this._createMessageDialog(
|
||||
'❤️ Do you love Burn-My-Windows?',
|
||||
`Even the smallest donation can have a big impact! If just one of ten Burn-My-Windows users donated $1 per month, I could dedicate myself to creating awesome open-source projects full-time!
|
||||
@@ -439,7 +439,7 @@ GitHub: <a href='https://github.com/sponsors/schneegans'>https://github.com/spon
|
||||
} else {
|
||||
dialog.show_all();
|
||||
}
|
||||
// }
|
||||
}
|
||||
});
|
||||
|
||||
// Populate the menu with actions.
|
||||
|
||||
Reference in New Issue
Block a user