Moved autologin on server connection

Fixed download entries duplication on desync
This commit is contained in:
RemixDev 2020-05-14 13:32:02 +02:00
parent bf946c2ae6
commit eb70f531f4

View file

@ -85,6 +85,7 @@ def on_connect():
spotifyCredentials = app.getSpotifyCredentials() spotifyCredentials = app.getSpotifyCredentials()
defaultSettings = app.getDefaultSettings_link() defaultSettings = app.getDefaultSettings_link()
emit('init_settings', (settings, spotifyCredentials, defaultSettings)) emit('init_settings', (settings, spotifyCredentials, defaultSettings))
emit('init_autologin')
arl_file_path = path.join(localpaths.getConfigFolder(), '.arl') arl_file_path = path.join(localpaths.getConfigFolder(), '.arl')
if serverwide_arl and path.isfile(arl_file_path): if serverwide_arl and path.isfile(arl_file_path):