mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Cleanup appicon prototype on disable
This commit is contained in:
@@ -68,17 +68,17 @@ export const PanelManager = class {
|
||||
SETTINGS.get_string('primary-monitor'),
|
||||
)
|
||||
|
||||
// g-s version 49 switched to clutter gestures
|
||||
if (!AppDisplay.AppIcon.prototype._removeMenuTimeout)
|
||||
AppDisplay.AppIcon.prototype._setPopupTimeout =
|
||||
AppDisplay.AppIcon.prototype._removeMenuTimeout = () => {}
|
||||
|
||||
this.allPanels = []
|
||||
this.dtpPrimaryMonitor =
|
||||
Main.layoutManager.monitors[dtpPrimaryIndex] ||
|
||||
Main.layoutManager.primaryMonitor
|
||||
this.proximityManager = new Proximity.ProximityManager()
|
||||
|
||||
// g-s version 49 switched to clutter gestures
|
||||
if (!AppDisplay.AppIcon.prototype._removeMenuTimeout)
|
||||
AppDisplay.AppIcon.prototype._setPopupTimeout =
|
||||
AppDisplay.AppIcon.prototype._removeMenuTimeout = this._emptyFunc
|
||||
|
||||
if (this.dtpPrimaryMonitor) {
|
||||
this.primaryPanel = this._createPanel(
|
||||
this.dtpPrimaryMonitor,
|
||||
@@ -323,6 +323,11 @@ export const PanelManager = class {
|
||||
this.primaryPanel && this.overview.disable()
|
||||
this.proximityManager.destroy()
|
||||
|
||||
if (AppDisplay.AppIcon.prototype._removeMenuTimeout == this._emptyFunc) {
|
||||
delete AppDisplay.AppIcon.prototype._setPopupTimeout
|
||||
delete AppDisplay.AppIcon.prototype._removeMenuTimeout
|
||||
}
|
||||
|
||||
this.allPanels.forEach((p) => {
|
||||
p.taskbar.iconAnimator.pause()
|
||||
|
||||
@@ -433,6 +438,8 @@ export const PanelManager = class {
|
||||
)
|
||||
}
|
||||
|
||||
_emptyFunc() {}
|
||||
|
||||
_setDesktopIconsMargins() {
|
||||
this._desktopIconsUsableArea?.resetMargins()
|
||||
this.allPanels.forEach((p) => {
|
||||
|
||||
Reference in New Issue
Block a user