-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextension.js
28 lines (24 loc) · 889 Bytes
/
extension.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { ContestCountdownButton } from './popupmenu.js';
import * as main from 'resource:///org/gnome/shell/ui/main.js';
import {Extension, gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js';
export default class ContestCountdown extends Extension {
enable() {
console.debug("Starting");
this._settings = this.getSettings()
// let contests = new Contests();
// contests.emit('update-contests');
this.ccMenu = new ContestCountdownButton(this._settings);
main.panel.addToStatusArea(
"cc-indicator",
this.ccMenu,
this._settings.get_int("extension-index"),
this._settings.get_string("extension-place")
);
}
disable() {
console.debug("Stoping");
this.ccMenu.destroy();
this.ccMenu = null;
this._settings = null;
}
}