Skip to content

Commit

Permalink
fix: bump the settings version to 6
Browse files Browse the repository at this point in the history
I was misled by messy code of the old extension to believe that its
schema vrsion was 4, but it was actually 5, so I re-used the old version
code and settings didn't get migrated.
  • Loading branch information
flexagoon committed Sep 27, 2024
1 parent f2fbebf commit 56d3e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
>

<key name="settings-version" type="u">
<default>5</default>
<!-- This gets set to the correct value when preferences are migrated -->
<default>0</default>
</key>

<key name="blacklist" type="as">
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function bindPref(
* @param prefs the GSettings object to clean.
*/
function resetOutdated(prefs: Gio.Settings) {
const lastVersion = 5;
const lastVersion = 6;
const currentVersion = prefs
.get_user_value('settings-version')
?.recursiveUnpack();
Expand Down

0 comments on commit 56d3e2d

Please sign in to comment.