mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
feat: force backup when putting the device into bootloader mode
This commit is contained in:
@@ -61,7 +61,6 @@ export async function restoreBackup(event: Event) {
|
||||
} else if (isCsvChords(text)) {
|
||||
restoreFromFile(csvChordsToJson(text))
|
||||
} else {
|
||||
alert("Unknown backup format")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {slide, fade} from "svelte/transition"
|
||||
import {preference} from "$lib/preferences"
|
||||
import LL from "../i18n/i18n-svelte"
|
||||
import Tooltip from "$lib/components/Tooltip.svelte"
|
||||
import {downloadBackup} from "$lib/backup/backup"
|
||||
|
||||
function reboot() {
|
||||
$serialPort?.reboot()
|
||||
@@ -16,6 +16,7 @@
|
||||
}
|
||||
|
||||
function bootloader() {
|
||||
downloadBackup()
|
||||
$serialPort?.bootloader()
|
||||
$serialPort = undefined
|
||||
rebootInfo = true
|
||||
|
||||
Reference in New Issue
Block a user