🔧 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;
|
const count = this._settings.get_int('prefs-open-count') + 1;
|
||||||
this._settings.set_int('prefs-open-count', count);
|
this._settings.set_int('prefs-open-count', count);
|
||||||
|
|
||||||
// if (count % 10 == 0) {
|
if (count % 10 == 0) {
|
||||||
const dialog = this._createMessageDialog(
|
const dialog = this._createMessageDialog(
|
||||||
'❤️ Do you love Burn-My-Windows?',
|
'❤️ 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!
|
`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 {
|
} else {
|
||||||
dialog.show_all();
|
dialog.show_all();
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Populate the menu with actions.
|
// Populate the menu with actions.
|
||||||
|
|||||||
Reference in New Issue
Block a user