make lastfm buttons turn red without needing to refresh
This commit is contained in:
parent
62937e551e
commit
61551c2218
1 changed files with 4 additions and 4 deletions
|
|
@ -191,10 +191,10 @@ export function initializeSettings(scrobbler, player, api, ui) {
|
|||
if (result.success) {
|
||||
clearInterval(checkAuth);
|
||||
if (authWindow && !authWindow.closed) authWindow.close();
|
||||
updateLastFMUI();
|
||||
lastfmConnectBtn.disabled = false;
|
||||
lastFMStorage.setEnabled(true);
|
||||
lastfmToggle.checked = true;
|
||||
updateLastFMUI();
|
||||
lastfmConnectBtn.disabled = false;
|
||||
alert(`Successfully connected to Last.fm as ${result.username}!`);
|
||||
}
|
||||
} catch {
|
||||
|
|
@ -416,10 +416,10 @@ export function initializeSettings(scrobbler, player, api, ui) {
|
|||
if (result.success) {
|
||||
clearInterval(checkAuth);
|
||||
if (authWindow && !authWindow.closed) authWindow.close();
|
||||
updateLibreFmUI();
|
||||
librefmConnectBtn.disabled = false;
|
||||
libreFmSettings.setEnabled(true);
|
||||
librefmToggle.checked = true;
|
||||
updateLibreFmUI();
|
||||
librefmConnectBtn.disabled = false;
|
||||
alert(`Successfully connected to Libre.fm as ${result.username}!`);
|
||||
}
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue