mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Hide app details if Gnome Software is installed
This commit is contained in:
@@ -1533,6 +1533,12 @@ export class TaskbarSecondaryMenu extends AppMenu.AppMenu {
|
||||
return GLib.SOURCE_REMOVE;
|
||||
});
|
||||
}
|
||||
|
||||
setApp(app) {
|
||||
super.setApp(app);
|
||||
|
||||
this._detailsItem.visible = !app.hideDetails
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user