mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Merge branch 'master' of https://github.com/home-sweet-gnome/dash-to-panel into beautify
This commit is contained in:
@@ -99,7 +99,8 @@ export default class DashToPanelExtension extends Extension {
|
||||
function _enable(extension) {
|
||||
extensionSystem.disableExtension(UBUNTU_DOCK_UUID);
|
||||
|
||||
if (panelManager) return; //already initialized
|
||||
if (panelManager)
|
||||
return panelManager.toggleDash(); // already initialized but ubuntu dock restored the original dash on disable
|
||||
|
||||
SETTINGS = extension.getSettings('org.gnome.shell.extensions.dash-to-panel');
|
||||
DESKTOPSETTINGS = new Gio.Settings({schema_id: 'org.gnome.desktop.interface'});
|
||||
|
||||
@@ -64,7 +64,7 @@ export const Overview = class {
|
||||
this._optionalNumberOverlay();
|
||||
this._optionalClickToExit();
|
||||
|
||||
this._toggleDash();
|
||||
this.toggleDash();
|
||||
this._adaptAlloc();
|
||||
|
||||
this._signalsHandler.add([
|
||||
@@ -73,7 +73,7 @@ export const Overview = class {
|
||||
'changed::stockgs-keep-dash',
|
||||
'changed::panel-sizes'
|
||||
],
|
||||
() => this._toggleDash()
|
||||
() => this.toggleDash()
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ export const Overview = class {
|
||||
this._timeoutsHandler.destroy();
|
||||
this._injectionManager.clear();
|
||||
|
||||
this._toggleDash(true);
|
||||
this.toggleDash(true);
|
||||
|
||||
// Remove key bindings
|
||||
this._disableHotKeys();
|
||||
@@ -91,7 +91,7 @@ export const Overview = class {
|
||||
this._disableClickToExit();
|
||||
}
|
||||
|
||||
_toggleDash(visible) {
|
||||
toggleDash(visible) {
|
||||
if (visible === undefined) {
|
||||
visible = SETTINGS.get_boolean('stockgs-keep-dash');
|
||||
}
|
||||
|
||||
@@ -296,6 +296,10 @@ export const PanelManager = class {
|
||||
this._desktopIconsUsableArea = null;
|
||||
}
|
||||
|
||||
toggleDash() {
|
||||
this.overview.toggleDash();
|
||||
}
|
||||
|
||||
_setDesktopIconsMargins() {
|
||||
this._desktopIconsUsableArea?.resetMargins();
|
||||
this.allPanels.forEach(p => {
|
||||
|
||||
Reference in New Issue
Block a user