fix(left-pane): preferred width is not restored (closes #990)

pull/999/head
Elian Doran 2025-01-18 12:54:59 +07:00
parent 148e166f5e
commit 8e3faffd35
No known key found for this signature in database
1 changed files with 7 additions and 3 deletions

@ -36,10 +36,14 @@ class Options {
getInt(key: string) { getInt(key: string) {
const value = this.arr?.[key]; const value = this.arr?.[key];
if (typeof value !== "string") { if (typeof value === "number") {
return null; return value;
}
if (typeof value == "string") {
return parseInt(value);
} }
return parseInt(value); console.warn("Attempting to read int for unsupported value: ", value);
return null;
} }
getFloat(key: string) { getFloat(key: string) {