feat(quick-pane): refine spotlight workflow
This commit is contained in:
@@ -42,7 +42,10 @@ export async function loadPresentation() {
|
||||
return invoke<UiState>("load_ui_state");
|
||||
}
|
||||
export async function savePresentation(state: UiState) {
|
||||
await invoke("save_ui_state", { state });
|
||||
const current = await loadPresentation();
|
||||
await invoke("save_ui_state", {
|
||||
state: { ...state, quickPane: current.quickPane },
|
||||
});
|
||||
}
|
||||
export function legacyPreferences(storage: Pick<Storage, "getItem">) {
|
||||
const path = storage.getItem(selectedPathKey) ?? undefined;
|
||||
|
||||
Reference in New Issue
Block a user