Skip to content

Commit

Permalink
show PlayerWindow in first run
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMahmood committed Oct 7, 2021
1 parent 7d7be11 commit fa6d5af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SystemTry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ SystemTry::SystemTry(QObject *parent) {
trayIcon->setContextMenu(trayMenu);

trayIcon->show();

QSettings settings;
settings.beginGroup("settings");
if (settings.value("__first_run", true).toBool()){
showPlayerWindow();
settings.setValue("__first_run", false);
}
settings.endGroup();
}

void SystemTry::onRadioStationChanged(const RadioStation &rs) {
Expand Down

0 comments on commit fa6d5af

Please sign in to comment.