set width globally by default

This commit is contained in:
tophf 2022-01-11 03:15:53 +03:00
parent 4ca3ac4870
commit bfdee7873b
2 changed files with 5 additions and 5 deletions

View File

@ -505,7 +505,7 @@
"message": "Getting all styles..." "message": "Getting all styles..."
}, },
"headerResizerHint": { "headerResizerHint": {
"message": "Holding Shift key while dragging will set the new size in all UI pages", "message": "Hold Shift to resize only in this type of UI, i.e. editor, manager, installer",
"description": "Tooltip for the header panel resizer" "description": "Tooltip for the header panel resizer"
}, },
"helpAlt": { "helpAlt": {

View File

@ -40,13 +40,13 @@
active = false; active = false;
} }
function save(all) { function save(perPage) {
if (all) { if (perPage) {
prefs.set(dom.HWprefId, curW);
} else {
for (const k of prefs.knownKeys) { for (const k of prefs.knownKeys) {
if (k.startsWith(dom.HW)) prefs.set(k, curW); if (k.startsWith(dom.HW)) prefs.set(k, curW);
} }
} else {
prefs.set(dom.HWprefId, curW);
} }
} }