Updating 45/no-overview to version 46 [85eba64].
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1d93c89abd
commit
155878f41e
2 changed files with 9 additions and 19 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue