17 lines
509 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|