Remove calls to RefreshConfig
This commit is contained in:
@@ -405,7 +405,6 @@ func (p *AudioOptions) ToggleAudio() {
|
|||||||
}
|
}
|
||||||
config.AudioEnabled = !config.AudioEnabled
|
config.AudioEnabled = !config.AudioEnabled
|
||||||
p.Context.DbPtr.Save(config)
|
p.Context.DbPtr.Save(config)
|
||||||
p.Context.RefreshConfig()
|
|
||||||
p.CreateAudioStatusItem()
|
p.CreateAudioStatusItem()
|
||||||
p.layout()
|
p.layout()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ type PageCtx struct {
|
|||||||
DbPtr *gorm.DB
|
DbPtr *gorm.DB
|
||||||
W, H int32
|
W, H int32
|
||||||
MessageChannel chan download.DownloadStatus
|
MessageChannel chan download.DownloadStatus
|
||||||
RefreshConfig func()
|
|
||||||
NavigateTo func(pageType)
|
NavigateTo func(pageType)
|
||||||
Msg string // Message to be displayed by MessagePage
|
Msg string // Message to be displayed by MessagePage
|
||||||
Inst string // Instructions to be displayed on MessagePage
|
Inst string // Instructions to be displayed on MessagePage
|
||||||
|
|||||||
Reference in New Issue
Block a user