Skip to content

Commit

Permalink
fix: linux drag n drop crash
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Jul 30, 2021
1 parent f404aa2 commit 1074891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions wally/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import (
"encoding/binary"
"encoding/json"
"fmt"
"github.com/wailsapp/wails"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"

"github.com/wailsapp/wails"
)

func jsonEscape(i string) string {
Expand Down Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion wally/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1074891

Please sign in to comment.