Skip to content

Commit

Permalink
settings: Correctly unwrap the changed value
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Aug 9, 2024
1 parent f01d29f commit 7bfab1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settings/changed.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func OnSignalSettingChanged(callback func(changed Changed)) error {

if len(sig.Body) > 2 {
changed.Value = sig.Body[2]
variant, ok := changed.Value.(dbus.Variant)
if ok {
changed.Value = variant.Value()
}
}

callback(changed)
Expand Down

0 comments on commit 7bfab1c

Please sign in to comment.