summaryrefslogtreecommitdiffstats
path: root/extensions/46/no-overview/extension.js
diff options
context:
space:
mode:
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);
+ }
+}