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

This commit is contained in:
Elian Doran 2025-01-18 12:54:59 +02:00
parent 148e166f5e
commit 8e3faffd35
No known key found for this signature in database

View File

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