mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Added block to change to updating if user hits dash or term before the update actually starts.
This commit is contained in:
parent
67d5723c07
commit
c8f25b0f9c
@ -404,7 +404,14 @@ class Server:
|
||||
self.stop_threaded_server()
|
||||
else:
|
||||
wasStarted = False
|
||||
|
||||
if len(websocket_helper.clients) > 0:
|
||||
# There are clients
|
||||
self.check_update()
|
||||
websocket_helper.broadcast('update_button_status', {
|
||||
'isUpdating': self.check_update(),
|
||||
'server_id': self.server_id,
|
||||
'wasRunning': wasStarted
|
||||
})
|
||||
backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups')
|
||||
#checks if backup directory already exists
|
||||
if os.path.isdir(backup_dir):
|
||||
|
Loading…
Reference in New Issue
Block a user