1
0
Fork 0

Updating 45/no-overview to version 46 [85eba64].

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-24 19:43:11 +01:00
parent 1d93c89abd
commit 155878f41e
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 9 additions and 19 deletions

View file

@ -1,32 +1,26 @@
/* /*
No overview at start-up No overview at start-up
GNOME Shell 45+ extension GNOME Shell 45+ extension
Contributors: @fthx, @fmuellner Contributors: @fthx
License: GPL v3 License: GPL v3
*/ */
import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js';
export default class NoOverviewExtension { export default class NoOverviewExtension {
constructor() {
this._realHasOverview = Main.sessionMode.hasOverview;
}
enable() { enable() {
if (!Main.layoutManager._startingUp) { if (!Main.layoutManager._startingUp) {
return; return;
} }
Main.sessionMode.hasOverview = false; Main.layoutManager.connectObject(
'startup-complete',
this._startup_complete = Main.layoutManager.connect('startup-complete', () => { () => Main.overview.hide(),
Main.sessionMode.hasOverview = this._realHasOverview; this
}); );
} }
disable() { disable() {
Main.sessionMode.hasOverview = this._realHasOverview; Main.layoutManager.disconnectObject(this);
Main.layoutManager.disconnect(this._startup_complete);
} }
} }

View file

@ -2,12 +2,8 @@
"_generated": "Generated by SweetTooth, do not edit", "_generated": "Generated by SweetTooth, do not edit",
"description": "No overview at start-up. Nothing more.", "description": "No overview at start-up. Nothing more.",
"name": "No overview at start-up", "name": "No overview at start-up",
"original-authors": [ "original-authors": ["fthx"],
"fthx" "shell-version": ["46"],
],
"shell-version": [
"45"
],
"url": "https://github.com/fthx/no-overview", "url": "https://github.com/fthx/no-overview",
"uuid": "no-overview@fthx", "uuid": "no-overview@fthx",
"version": 999 "version": 999