mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01: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:
parent
6f197f67f1
commit
27c4c5e6f6
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue