mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix activities method when no workspacedots
gh-2289
This commit is contained in:
@@ -170,10 +170,13 @@ export const PanelManager = class {
|
||||
},
|
||||
)
|
||||
|
||||
let activitiesChild = Main.panel.statusArea.activities.get_first_child()
|
||||
|
||||
if (activitiesChild?.constructor.name == 'WorkspaceIndicators') {
|
||||
this._injectionManager.overrideMethod(
|
||||
Object.getPrototypeOf(
|
||||
// WorkspaceDot in activities button
|
||||
Main.panel.statusArea.activities.get_first_child().get_first_child(),
|
||||
activitiesChild.get_first_child(),
|
||||
),
|
||||
'vfunc_get_preferred_width',
|
||||
(get_preferred_width) =>
|
||||
@@ -183,6 +186,7 @@ export const PanelManager = class {
|
||||
: get_preferred_width.call(this, forHeight)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
LookingGlass.LookingGlass.prototype._oldResize =
|
||||
LookingGlass.LookingGlass.prototype._resize
|
||||
|
||||
Reference in New Issue
Block a user