Skip to content

Commit

Permalink
Link download page if new version is available
Browse files Browse the repository at this point in the history
  • Loading branch information
ann0see committed Aug 27, 2021
1 parent 417a9bc commit 20d576c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
lblGlobalInfoLabel->hide();

// prepare update check info label (invisible by default)
lblUpdateCheck->setText ( "<font color=\"red\"><b>" + QString ( APP_NAME ) + " " + tr ( "software upgrade available" ) + "</b></font>" );
lblUpdateCheck->setOpenExternalLinks ( true ); // enables opening a web browser if one clicks on a html link
lblUpdateCheck->setText ( "<font color=\"#c94a55\"><b>" + QString ( "%1 upgrade available. " ) .arg ( APP_NAME ) + tr ( "<a style='color:#c94a55;' href='https://jamulus.io/download'>Update now!</a>" ) + "</b></font>" );
lblUpdateCheck->hide();

// setup timers
Expand Down
3 changes: 2 additions & 1 deletion src/serverdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ lvwClients->setMinimumHeight ( 140 );
tedWelcomeMessage->setText ( pServer->GetWelcomeMessage() );

// prepare update check info label (invisible by default)
lblUpdateCheck->setText ( "<font color=\"red\"><b>" + QString ( APP_NAME ) + " " + tr ( "software upgrade available" ) + "</b></font>" );
lblUpdateCheck->setOpenExternalLinks ( true ); // enables opening a web browser if one clicks on a html link
lblUpdateCheck->setText ( "<font color=\"#c94a55\"><b>" + QString ( "%1 upgrade available. " ) .arg ( APP_NAME ) + tr ( "<a style='color:#c94a55;' href='https://jamulus.io/download'>Update now!</a>" ) + "</b></font>" );
lblUpdateCheck->hide();

// update GUI dependencies
Expand Down

0 comments on commit 20d576c

Please sign in to comment.