Skip to content

Commit 45195d5

Browse files
authored
linux: theme handling bugfix (#3515)
* linux: theme handling bugfix * update changelog
1 parent 2a056a7 commit 45195d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mkdocs-website/docs/en/changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3737

3838
### Fixed
3939

40+
- [linux] Fixed theme handling error on NixOS by [tmclane](https://github.com/tmclane) in [#3515)(https://github.com/wailsapp/wails/pull/3515)
4041
- Fixed cross volume project install for windows by [atterpac](https://github.com/atterac) in [#3512](https://github.com/wailsapp/wails/pull/3512)
4142
- Fixed react template css to show footer by [atterpac](https://github.com/atterpac) in [#3477](https://github.com/wailsapp/wails/pull/3477)
4243
- Fixed zombie processes when working in devmode by updating to latest refresh by [Atterpac](https://github.com/atterpac) in [#3320](https://github.com/wailsapp/wails/pull/3320).

v3/pkg/application/application_linux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ func (a *linuxApp) monitorThemeChanges() {
156156
if len(body) < 2 {
157157
return "", false
158158
}
159-
if body[0].(string) != "org.gnome.desktop.interface" {
159+
if entry, ok := body[0].(string); !ok || entry != "org.gnome.desktop.interface" {
160160
return "", false
161161
}
162-
if body[1].(string) == "color-scheme" {
162+
if entry, ok := body[1].(string); ok && entry == "color-scheme" {
163163
return body[2].(dbus.Variant).Value().(string), true
164164
}
165165
return "", false

0 commit comments

Comments
 (0)