Skip to content

Commit

Permalink
fix: uninitialize settings after logging
Browse files Browse the repository at this point in the history
The _log function tries to access a setting to check if the extension is
in debug mode, so after settings are uninitialized, _log can't be
called.
  • Loading branch information
flexagoon committed Jun 22, 2024
1 parent 2f61799 commit e4feb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ export default class RoundedWindowCornersReborn extends Extension {
// Remove the item to open preferences page in background menu
UI.RestoreBackgroundMenu();

uninit_settings();

this._services?.unexport();
this._window_actor_tracker?.disable();

Expand All @@ -395,6 +393,8 @@ export default class RoundedWindowCornersReborn extends Extension {
this._services = null;

_log('Disabled');

uninit_settings();
}
}

Expand Down

0 comments on commit e4feb4b

Please sign in to comment.