From 10748911ea3677cb4c9ec36e0bf99a8412d794f3 Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Fri, 30 Jul 2021 11:04:10 +0900 Subject: [PATCH] fix: linux drag n drop crash --- wally/state.go | 5 +++-- wally/version.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wally/state.go b/wally/state.go index 4013078..ccd67cf 100644 --- a/wally/state.go +++ b/wally/state.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "encoding/json" "fmt" - "github.com/wailsapp/wails" "io/ioutil" "os" "path/filepath" @@ -13,6 +12,8 @@ import ( "strconv" "strings" "time" + + "github.com/wailsapp/wails" ) func jsonEscape(i string) string { @@ -176,7 +177,7 @@ func (s *State) SelectFirmwareWithData(data string) { s.Log("error", message) } else { s.FirmwarePath = jsonEscape(filePath) - s.Step = Flashing + s.Step = Waiting s.FlashFirmware() s.emitUpdate() } diff --git a/wally/version.go b/wally/version.go index 6699d55..bb649e7 100644 --- a/wally/version.go +++ b/wally/version.go @@ -8,7 +8,7 @@ func GetAppVersion() string { case "darwin": return "2.1.0" case "linux": - return "2.1.1" + return "2.1.2" case "windows": return "2.1.0" default: