This commit is contained in:
team3
2026-09-19 20:59:47 +02:00
parent 45a6ecf654
commit 4548178a7c
20 changed files with 832 additions and 23 deletions

View File

@@ -7,6 +7,7 @@ import * as Main from 'resource:///org/gnome/shell/ui/main.js';
import {CalendarPanel} from './calendar.js';
import {NotesPanel} from './notes.js';
import {Store} from './store.js';
import {Sync} from './sync.js';
import {TodoPanel} from './todos.js';
const MARGIN = 24;
@@ -31,9 +32,14 @@ export default class DesktopExtension extends Extension {
this._workareaId = global.display.connect('workareas-changed', () => this._layout());
this._layout();
this._restack();
this._sync = new Sync(this._store);
this._sync.start();
}
disable() {
this._sync.stop();
this._sync = null;
global.display.disconnect(this._restackId);
global.window_manager.disconnect(this._mapId);
global.display.disconnect(this._workareaId);