Skip to content

Commit

Permalink
Finish G45 port
Browse files Browse the repository at this point in the history
  • Loading branch information
ExposedCat committed Nov 4, 2023
1 parent b8f13cd commit 485b573
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
11 changes: 6 additions & 5 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import { Config } from './js/config.js'
import { Manager } from './js/manager.js'

export default class SnowyExtension extends Extension {
constructor() {
this.manager = new Manager()
}

manager = null

enable() {
const settings = this.getSettings();
if (this.manager === null) {
this.manager = new Manager()
}
const settings = this.getSettings('org.gnome.shell.extensions.snowy');
const config = new Config(settings)
this.manager.startSnowing(config)
}
Expand Down
2 changes: 1 addition & 1 deletion js/manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GLib from 'gi://GLib'
import Main from 'resource:///org/gnome/shell/ui/main.js'
import * as Main from 'resource:///org/gnome/shell/ui/main.js'

import { Snowflake } from './snowflake.js'
import { random, setInterval } from './utils.js'
Expand Down
5 changes: 3 additions & 2 deletions js/snowflake.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { St, Clutter } from 'gi://GLib'
import Main from 'resource:///org/gnome/shell/ui/main.js'
import St from 'gi://St'
import Clutter from 'gi://Clutter'
import * as Main from 'resource:///org/gnome/shell/ui/main.js'

import { random } from './utils.js'

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
],
"url": "https://github.com/ExposedCat/snowy",
"uuid": "snowy@exposedcat",
"version": 3.2
"version": 3.3
}

0 comments on commit 485b573

Please sign in to comment.