Skip to content

Commit

Permalink
use "settings-schema" metadata entry, as suggested in the porting guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 15, 2023
1 parent 1351220 commit d79177e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const Mainloop = imports.mainloop; // still using legacy imports (GNOME Shell <
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';

export default class HardDiskLEDExtension extends Extension {

PREFS_SCHEMA = 'org.gnome.shell.extensions.harddiskled';
refreshTime = 2.0;

ledThreshold = 500000;
Expand Down Expand Up @@ -159,7 +157,7 @@ export default class HardDiskLEDExtension extends Extension {

enable() {
this.init()
this.settings = this.getSettings(this.PREFS_SCHEMA);
this.settings = this.getSettings();

this.mode = this.settings.get_int('mode'); // default mode

Expand Down
1 change: 1 addition & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"_generated": "Generated by SweetTooth, do not edit",
"description": "Show harddisk activity (IO speed read/write and LED). Click to change led size",
"name": "Harddisk LED",
"settings-schema": "org.gnome.shell.extensions.harddiskled",
"shell-version": [
"45"
],
Expand Down

0 comments on commit d79177e

Please sign in to comment.