mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 09:42:28 +08:00
fix(left-pane): preferred width is not restored (closes #990)
This commit is contained in:
parent
148e166f5e
commit
8e3faffd35
@ -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;
|
||||||
}
|
}
|
||||||
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) {
|
getFloat(key: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user