mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix initial intellihide chrome not set on g-s 49
gh-2388
This commit is contained in:
@@ -73,6 +73,9 @@ export const Intellihide = class {
|
|||||||
)
|
)
|
||||||
|
|
||||||
this.enabled = false
|
this.enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
init() {
|
||||||
this._changeEnabledStatus()
|
this._changeEnabledStatus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -730,6 +730,8 @@ export const Panel = GObject.registerClass(
|
|||||||
this.taskbar.resetAppIcons(true)
|
this.taskbar.resetAppIcons(true)
|
||||||
this.dynamicTransparency.updateExternalStyle()
|
this.dynamicTransparency.updateExternalStyle()
|
||||||
|
|
||||||
|
if (this.intellihide?.enabled) this.intellihide.reset()
|
||||||
|
|
||||||
if (this.geom.vertical) {
|
if (this.geom.vertical) {
|
||||||
this.showAppsIconWrapper.realShowAppsIcon.toggleButton.set_width(
|
this.showAppsIconWrapper.realShowAppsIcon.toggleButton.set_width(
|
||||||
this.geom.innerSize,
|
this.geom.innerSize,
|
||||||
|
|||||||
@@ -695,6 +695,9 @@ export const PanelManager = class {
|
|||||||
affectsStruts: true,
|
affectsStruts: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// intellihide changes the chrome when enabled, so init after setting initial chrome params
|
||||||
|
panel.intellihide.init()
|
||||||
|
|
||||||
this._findPanelMenuButtons(panelBox).forEach((pmb) =>
|
this._findPanelMenuButtons(panelBox).forEach((pmb) =>
|
||||||
this._adjustPanelMenuButton(pmb, monitor, panel.geom.position),
|
this._adjustPanelMenuButton(pmb, monitor, panel.geom.position),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user