Skip to content

Commit

Permalink
Rename display unit option to system
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Jan 25, 2024
1 parent bfebd94 commit 05cb7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/assets/DefaultUserSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
"value": "display",
"items": [
{
"value": "stored",
"value": "system",
"icon": "mdi-database"
},
{
"value": "display",
"icon": "mdi-monitor"
},
{
"value": "custom",
"icon": "mdi-monitor-edit",
"disabled": true
}
],
"group": "Units"
Expand Down
2 changes: 1 addition & 1 deletion src/stores/userSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const useUserSettingsStore = defineStore({
}
this.useDisplayUnits = payload === 'display'
if (payload !== 'custom') {
const i = payload === 'stored' ? 0 : 1
const i = payload === 'system' ? 0 : 1
for (const s of unitSettings) {
const newValue = s.items ? s.items[i].value : ''
s.value = newValue
Expand Down

0 comments on commit 05cb7fc

Please sign in to comment.