summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:03:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:03:53 +0000
commit745dad2221dfb7f6ac039e91acbea63430a2a6aa (patch)
tree8789cceeac7391a0f1e8d05c6db428a4ab9738b3 /extensions
parentUpdating 45/middleclickclose to version 30 [168768a]. (diff)
downloadgnome-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')
-rw-r--r--extensions/45/no-overview/extension.js20
-rw-r--r--extensions/45/no-overview/metadata.json8
2 files changed, 9 insertions, 19 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);
}
}
diff --git a/extensions/45/no-overview/metadata.json b/extensions/45/no-overview/metadata.json
index 0c95c9e..695d317 100644
--- a/extensions/45/no-overview/metadata.json
+++ b/extensions/45/no-overview/metadata.json
@@ -2,12 +2,8 @@
"_generated": "Generated by SweetTooth, do not edit",
"description": "No overview at start-up. Nothing more.",
"name": "No overview at start-up",
- "original-authors": [
- "fthx"
- ],
- "shell-version": [
- "45"
- ],
+ "original-authors": ["fthx"],
+ "shell-version": ["46"],
"url": "https://github.com/fthx/no-overview",
"uuid": "no-overview@fthx",
"version": 999