Hide app details if Gnome Software is installed

This commit is contained in:
Charles Gagnon
2025-01-30 14:41:42 -05:00
parent ac9c2b4b06
commit 3f5c952664
2 changed files with 9 additions and 1 deletions

View File

@@ -1533,6 +1533,12 @@ export class TaskbarSecondaryMenu extends AppMenu.AppMenu {
return GLib.SOURCE_REMOVE;
});
}
setApp(app) {
super.setApp(app);
this._detailsItem.visible = !app.hideDetails
}
}
/**

View File

@@ -56,6 +56,7 @@ const T3 = 'resetHoverTimeout'
const T4 = 'donateAppTimeout'
let donateDummyApp = {
hideDetails: true,
app_info: {
should_show: () => false,
list_actions: () => ['opts'],
@@ -78,10 +79,11 @@ let donateDummyApp = {
})
},
activate: function() {
SETTINGS.set_string('target-prefs-page', 'donation')
if (this.isActive())
return
SETTINGS.set_string('target-prefs-page', 'donation')
DTP_EXTENSION.openPreferences()
this._taskbar._timeoutsHandler.add([T4, 5000, this.forceRefresh.bind(this)])
this.forceRefresh()