mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Clear dummy app if icon is hidden
This commit is contained in:
11
taskbar.js
11
taskbar.js
@@ -102,9 +102,12 @@ let donateDummyApp = {
|
||||
}
|
||||
|
||||
function setDonateApp() {
|
||||
this._donateApp = Object.create(donateDummyApp)
|
||||
this._donateApp._taskbar = this
|
||||
this._donateApp.visible = !SETTINGS.get_string('hide-donate-icon-unixtime')
|
||||
delete this._donateApp
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (this._donateApp.visible)
|
||||
if (this._donateApp)
|
||||
appInfos = [
|
||||
{
|
||||
app: this._donateApp,
|
||||
|
||||
Reference in New Issue
Block a user