File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ func main() {
158
158
log .Println ("Copy error: " , err )
159
159
panic (err )
160
160
}
161
- Systray .Update (newPath )
161
+ Systray .RestartWith (newPath )
162
162
} else {
163
163
// Otherwise copy to a path with -temp suffix
164
164
if err := copyExe (src , updater .AddTempSuffixToPath (src )); err != nil {
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ func (s *Systray) Resume() {
92
92
s .Restart ()
93
93
}
94
94
95
- // Update restarts the program with the given path
96
- func (s * Systray ) Update (path string ) {
95
+ // RestartWith restarts the program with the given path
96
+ func (s * Systray ) RestartWith (path string ) {
97
97
s .path = path
98
98
s .Restart ()
99
99
}
Original file line number Diff line number Diff line change @@ -64,5 +64,6 @@ func updateHandler(c *gin.Context) {
64
64
path = updater .AddTempSuffixToPath (path )
65
65
66
66
c .JSON (200 , gin.H {"success" : "Please wait a moment while the agent reboots itself" })
67
- Systray .Update (path )
67
+
68
+ Systray .RestartWith (path )
68
69
}
You can’t perform that action at this time.
0 commit comments