fix logout on native app

pull/19/head
Niko PLP 1 year ago
parent 14cfd30ca9
commit e8c6fd378d
  1. 6
      ng-app/src/App.svelte

@ -53,6 +53,12 @@
let walls = await ng.get_wallets_from_localstorage(); let walls = await ng.get_wallets_from_localstorage();
wallets.set(walls); wallets.set(walls);
unsubscribe = active_wallet.subscribe((value) => {
if (value && !value.wallet) {
active_wallet.set(undefined);
}
});
let window_api = await import("@tauri-apps/plugin-window"); let window_api = await import("@tauri-apps/plugin-window");
let event_api = await import("@tauri-apps/api/event"); let event_api = await import("@tauri-apps/api/event");
let main = window_api.Window.getByLabel("main"); let main = window_api.Window.getByLabel("main");

Loading…
Cancel
Save