gnome-shell-extension-hide-.../extension.js
2024-04-10 10:04:57 +08:00

17 lines
509 B
JavaScript

import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js'
import * as Main from 'resource:///org/gnome/shell/ui/main.js'
export default class HideOverviewExtension extends Extension {
enable() {
this.handler = Main.layoutManager.connect('startup-complete', () => {
Main.overview.hide()
})
}
disable() {
if (this.handler != null) {
Main.layoutManager.disconnect(this.handler)
this.handler = null
}
}
}