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 @@ -180,7 +180,7 @@ func main() {
180
180
panic (err )
181
181
}
182
182
183
- Systray .Update (newPath )
183
+ Systray .RestartWith (newPath )
184
184
} else {
185
185
// Otherwise copy to a path with -temp suffix
186
186
err := copyExe (srcPath .String (), updater .TempPath (srcPath .String ()))
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ func (s *Systray) Resume() {
90
90
s .Restart ()
91
91
}
92
92
93
- // Update restarts the program with the given path
94
- func (s * Systray ) Update (path string ) {
93
+ // RestartWith restarts the program with the given path
94
+ func (s * Systray ) RestartWith (path string ) {
95
95
s .path = path
96
96
s .Restart ()
97
97
}
Original file line number Diff line number Diff line change @@ -64,5 +64,6 @@ func updateHandler(c *gin.Context) {
64
64
path = updater .TempPath (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