forked from Silverfish/proton-bridge
GODT-1058 Install after chaning channel right away only in case of downgrade
This commit is contained in:
committed by
Jakub Cuth
parent
0e5a45671f
commit
feeb7179f5
@ -605,14 +605,16 @@ func (s *FrontendQt) toggleEarlyAccess() {
|
||||
channel = updater.EarlyChannel
|
||||
}
|
||||
|
||||
err := s.bridge.SetUpdateChannel(channel)
|
||||
needRestart, err := s.bridge.SetUpdateChannel(channel)
|
||||
s.Qml.SetIsEarlyAccess(channel == updater.EarlyChannel)
|
||||
if err != nil {
|
||||
s.Qml.NotifyManualUpdateError()
|
||||
return
|
||||
}
|
||||
s.restarter.SetToRestart()
|
||||
s.App.Quit()
|
||||
if needRestart {
|
||||
s.restarter.SetToRestart()
|
||||
s.App.Quit()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *FrontendQt) toggleAllowProxy() {
|
||||
|
||||
Reference in New Issue
Block a user