mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 linux] bail early if bad dbus message
Need at least two elements to decide what theme it is and if it is a theme message at all. Addresses #3040
This commit is contained in:
@@ -153,6 +153,9 @@ func (m *linuxApp) monitorThemeChanges() {
|
||||
conn.Signal(c)
|
||||
|
||||
getTheme := func(body []interface{}) (string, bool) {
|
||||
if len(body) < 2 {
|
||||
return "", false
|
||||
}
|
||||
if body[0].(string) != "org.gnome.desktop.interface" {
|
||||
return "", false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user