Skip to content

Commit

Permalink
fix: avoid nil–pointer error on Halo65
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Mar 21, 2024
1 parent e0d3735 commit 1749a69
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning][].
- Improved toolbar styles on macOS.
- Glyphs font loading.
- Light mode keyboard appearance.
- Crash on keystroke with Halo65.

## [2.2.0-beta1]

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.21.4

require (
github.com/jpillora/overseer v1.1.6
github.com/mishamyrt/nuga-lib v0.6.1
github.com/mishamyrt/nuga-lib v0.6.2
github.com/wailsapp/wails/v2 v2.8.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mishamyrt/nuga-lib v0.6.1 h1:QqAf4j5O366PSoFWZKexP03AAu7nK2tSrDfD+bIoprY=
github.com/mishamyrt/nuga-lib v0.6.1/go.mod h1:Zvch+eplvbZyH0ubJSIV9bWoSDLJtbjOiuwu/YEPsYA=
github.com/mishamyrt/nuga-lib v0.6.2 h1:OoEtMO12v2dEd2ScfoMUoihsbsZlAjjzxWzpnYXWn/s=
github.com/mishamyrt/nuga-lib v0.6.2/go.mod h1:Zvch+eplvbZyH0ubJSIV9bWoSDLJtbjOiuwu/YEPsYA=
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU=
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand Down
5 changes: 3 additions & 2 deletions internal/usecase/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ func (k *KeysUsecase) SetKeys(keys dto.KeyMap) error {
return err
}
if mode == dto.WindowsOSMode {
return dev.Features.Keys.SetWin(&layoutKeys)
err = dev.Features.Keys.SetWin(&layoutKeys)
} else {
err = dev.Features.Keys.SetMac(&layoutKeys)
}
err = dev.Features.Keys.SetMac(&layoutKeys)
if err != nil {
return err
}
Expand Down

0 comments on commit 1749a69

Please sign in to comment.