fix: blink not launching or rendering on opening
This commit is contained in:
31 files changed
+546
-279
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import type { RecommendedServerInfo } from "@jellyfin/sdk";
|
||||
import { Store } from "@tauri-apps/plugin-store";
|
||||
import { load } from "@tauri-apps/plugin-store";
|
||||
|
||||
export interface ServerInfo extends RecommendedServerInfo {
|
||||
id: string;
|
||||
@@ -10,7 +10,7 @@ export interface ServerStore {
|
||||
servers: ServerInfo[];
|
||||
}
|
||||
|
||||
const store = new Store(".servers.dat");
|
||||
const store = await load(".servers.dat", { autoSave: true });
|
||||
|
||||
/**
|
||||
* Set server in .servers.dat
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Store } from "@tauri-apps/plugin-store";
|
||||
import { load } from "@tauri-apps/plugin-store";
|
||||
|
||||
const SettingsStore = new Store(".settings.dat");
|
||||
const SettingsStore = await load(".settings.dat", { autoSave: true });
|
||||
|
||||
/**
|
||||
* settingKey should be of type:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Store } from "@tauri-apps/plugin-store";
|
||||
import { load } from "@tauri-apps/plugin-store";
|
||||
|
||||
export interface UserStore {
|
||||
user: {
|
||||
@@ -7,7 +7,7 @@ export interface UserStore {
|
||||
};
|
||||
}
|
||||
|
||||
const user = new Store(".user.dat");
|
||||
const user = await load(".user.dat", { autoSave: true });
|
||||
|
||||
/**
|
||||
* Set User details to .user.dat
|
||||
|
||||
Reference in new issue
Block a user