diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 06:03:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 06:03:53 +0000 |
commit | 745dad2221dfb7f6ac039e91acbea63430a2a6aa (patch) | |
tree | 8789cceeac7391a0f1e8d05c6db428a4ab9738b3 /extensions/45/no-overview/extension.js | |
parent | Updating 45/middleclickclose to version 30 [168768a]. (diff) | |
download | gnome-shell-extensions-extra-745dad2221dfb7f6ac039e91acbea63430a2a6aa.tar.xz gnome-shell-extensions-extra-745dad2221dfb7f6ac039e91acbea63430a2a6aa.zip |
Updating 45/no-overview to version 46 [85eba64].
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/45/no-overview/extension.js')
-rw-r--r-- | extensions/45/no-overview/extension.js | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/extensions/45/no-overview/extension.js b/extensions/45/no-overview/extension.js index 63c914a..f0a6f28 100644 --- a/extensions/45/no-overview/extension.js +++ b/extensions/45/no-overview/extension.js @@ -1,32 +1,26 @@ /* No overview at start-up GNOME Shell 45+ extension - Contributors: @fthx, @fmuellner + Contributors: @fthx License: GPL v3 */ - import * as Main from 'resource:///org/gnome/shell/ui/main.js'; export default class NoOverviewExtension { - constructor() { - this._realHasOverview = Main.sessionMode.hasOverview; - } - enable() { if (!Main.layoutManager._startingUp) { return; } - Main.sessionMode.hasOverview = false; - - this._startup_complete = Main.layoutManager.connect('startup-complete', () => { - Main.sessionMode.hasOverview = this._realHasOverview; - }); + Main.layoutManager.connectObject( + 'startup-complete', + () => Main.overview.hide(), + this + ); } disable() { - Main.sessionMode.hasOverview = this._realHasOverview; - Main.layoutManager.disconnect(this._startup_complete); + Main.layoutManager.disconnectObject(this); } } |