Skip to content

Commit

Permalink
Link upgrade 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 d112825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ 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>" + tr ( "A %1 upgrade is available. " ).arg ( APP_NAME ) +
tr ( "<a style='color:#c94a55;' href='https://jamulus.io/upgrade?progversion=%1'>Click for details</a>" ).arg ( VERSION ) + "</b></font>" );
lblUpdateCheck->hide();

// setup timers
Expand Down
5 changes: 4 additions & 1 deletion src/serverdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ 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>" + tr ( "A %1 upgrade is available. " ).arg ( APP_NAME ) +
tr ( "<a style='color:#c94a55;' href='https://jamulus.io/upgrade?progversion=%1'>Click for details</a>" ).arg ( VERSION ) + "</b></font>" );
lblUpdateCheck->hide();

// update GUI dependencies
Expand Down

0 comments on commit d112825

Please sign in to comment.