mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-29 16:18:55 +00:00
feat: add execute-script route and handler for executing SQL scripts
This commit is contained in:
+2
-1
@@ -942,7 +942,7 @@ const downloadProgress = ref(0);
|
||||
const updateReady = ref(false);
|
||||
|
||||
async function downloadAndInstallUpdate() {
|
||||
if (isDownloadingUpdate.value) return;
|
||||
if (!isTauriRuntime() || isDownloadingUpdate.value) return;
|
||||
isDownloadingUpdate.value = true;
|
||||
downloadProgress.value = 0;
|
||||
try {
|
||||
@@ -970,6 +970,7 @@ async function downloadAndInstallUpdate() {
|
||||
}
|
||||
|
||||
async function restartApp() {
|
||||
if (!isTauriRuntime()) return;
|
||||
const { relaunch } = await import("@tauri-apps/plugin-process");
|
||||
await relaunch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user