make right sidebar tab persistent

This commit is contained in:
end-4
2025-05-10 23:42:28 +02:00
parent f13912a027
commit 3c877197b4
5 changed files with 32 additions and 12 deletions
@@ -29,6 +29,7 @@ Singleton {
}
function setState(nestedKey, value) {
// console.log(`[PersistentStateManager] Setting state: ${nestedKey} = ${value}`);
let keys = nestedKey.split(".");
let obj = PersistentStates;
let parents = [obj];
@@ -53,7 +54,6 @@ Singleton {
}
function saveStates() {
console.log("[PersistentStateManager] Saving states to file:", root.filePath)
const plainStates = ObjectUtils.toPlainObject(PersistentStates)
stateFileView.setText(JSON.stringify(plainStates, null, 2))
}