Skip to content

Commit

Permalink
Don't start client if set
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jul 6, 2020
1 parent e3ae9d2 commit b9f1e47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ MainWindow::MainWindow(Settings &settings, QWidget *parent) : settings(settings)
refresh();
timer->start(1000);
// Check if should start client
if (settings.spotify.startClient)
if (settings.spotify.startClient
&& (settings.spotify.alwaysStart || spotify->devices().isEmpty()))
{
sptClient = new spt::ClientHandler(settings, this);
auto status = sptClient->start();
Expand Down

0 comments on commit b9f1e47

Please sign in to comment.