Skip to content

Commit

Permalink
fix: 解决dconfig属性类型不对导致崩溃的问题
Browse files Browse the repository at this point in the history
解决dconfig属性类型不对导致崩溃的问题

Log: 解决dconfig属性类型不对导致崩溃的问题
pms: BUG-288537
  • Loading branch information
fly602 committed Dec 6, 2024
1 parent afcee8e commit 446f771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/power1/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func (m *Manager) initDsg() {
case dsettingCustomShutdownWeekDays:
res := []byte{}
for _, v := range data.Value().([]dbus.Variant) {
res = append(res, byte(v.Value().(float64)))
res = append(res, byte(v.Value().(int64)))
}
if init {
m.CustomShutdownWeekDays = res
Expand Down

0 comments on commit 446f771

Please sign in to comment.