Clear dummy app if icon is hidden

This commit is contained in:
Charles Gagnon
2025-01-30 17:11:32 -05:00
parent 5ccb84865a
commit c3712b0954

View File

@@ -102,9 +102,12 @@ let donateDummyApp = {
} }
function setDonateApp() { function setDonateApp() {
this._donateApp = Object.create(donateDummyApp) delete this._donateApp
this._donateApp._taskbar = this
this._donateApp.visible = !SETTINGS.get_string('hide-donate-icon-unixtime') if (!SETTINGS.get_string('hide-donate-icon-unixtime')) {
this._donateApp = Object.create(donateDummyApp)
this._donateApp._taskbar = this
}
} }
/** /**
@@ -980,7 +983,7 @@ export const Taskbar = class extends EventEmitter {
.filter(appInfo => appInfo.windows.length || favoriteApps.indexOf(appInfo.app) >= 0); .filter(appInfo => appInfo.windows.length || favoriteApps.indexOf(appInfo.app) >= 0);
} }
if (this._donateApp.visible) if (this._donateApp)
appInfos = [ appInfos = [
{ {
app: this._donateApp, app: this._donateApp,