Skip to content

Commit

Permalink
Fixed app freezing while looking for update with no connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Sep 13, 2024
1 parent c6dea56 commit 46dfab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/UI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,6 @@ void MainWindow::editProgramSetting()
void MainWindow::checkForUpdates(bool firstStart)
{
bool needsUpdate = false;
DialogInfo *dialogWindow = new DialogInfo(this);
dialogWindow->setTitle(tr("Check for updates"));

const QVersionNumber &local_hc = API.getVersion();
const QVersionNumber local_gui = QVersionNumber::fromString(qApp->applicationVersion());
Expand All @@ -713,6 +711,8 @@ void MainWindow::checkForUpdates(bool firstStart)
}

if ((needsUpdate && firstStart) || !firstStart) {
DialogInfo *dialogWindow = new DialogInfo(this);
dialogWindow->setTitle(tr("Check for updates"));
QString text = "HeadesetControl: " + s1 + "<br/>HeadesetControl-GUI: " + s2;
dialogWindow->setLabel(text);

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <QTranslator>

const QString APP_NAME = "HeadsetControl-GUI";
const QString GUI_VERSION = "0.16.1";
const QString GUI_VERSION = "0.16.2";

int main(int argc, char *argv[])
{
Expand Down

0 comments on commit 46dfab4

Please sign in to comment.