summaryrefslogtreecommitdiffstats
path: root/extensions/46/no-overview/extension.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:15:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:15:40 +0000
commita7253052777df3bcf4b2abe9367de244cbc35da1 (patch)
tree1168b662d8028f172d12c2eb4efc62bf8408434b /extensions/46/no-overview/extension.js
parentAdding upstream version 20231210. (diff)
downloadgnome-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.js26
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);
+ }
+}