mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +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() {
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user