diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 06:15:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 06:15:40 +0000 |
commit | a7253052777df3bcf4b2abe9367de244cbc35da1 (patch) | |
tree | 1168b662d8028f172d12c2eb4efc62bf8408434b /extensions/46/no-overview/extension.js | |
parent | Adding upstream version 20231210. (diff) | |
download | gnome-shell-extensions-extra-64c317f72e49904d35ad976e4892aece9929c475.tar.xz gnome-shell-extensions-extra-64c317f72e49904d35ad976e4892aece9929c475.zip |
Adding upstream version 20240414.upstream/20240414
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/46/no-overview/extension.js')
-rw-r--r-- | extensions/46/no-overview/extension.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extensions/46/no-overview/extension.js b/extensions/46/no-overview/extension.js new file mode 100644 index 0000000..f0a6f28 --- /dev/null +++ b/extensions/46/no-overview/extension.js @@ -0,0 +1,26 @@ +/* + No overview at start-up + GNOME Shell 45+ extension + Contributors: @fthx + License: GPL v3 +*/ + +import * as Main from 'resource:///org/gnome/shell/ui/main.js'; + +export default class NoOverviewExtension { + enable() { + if (!Main.layoutManager._startingUp) { + return; + } + + Main.layoutManager.connectObject( + 'startup-complete', + () => Main.overview.hide(), + this + ); + } + + disable() { + Main.layoutManager.disconnectObject(this); + } +} |