Skip to content

Commit

Permalink
(ckb) Firmware upgrade box shouldn't be shown unless the window is al…
Browse files Browse the repository at this point in the history
…ready open
  • Loading branch information
ccMSC committed Apr 8, 2016
1 parent 5867121 commit 36752f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ckb/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ void MainWindow::updateVersion(){
}

void MainWindow::checkFwUpdates(){
if(!mainWindow->isVisible())
return;
foreach(KbWidget* w, kbWidgets){
// Display firmware upgrade notification if a new version is available
float version = KbFirmware::versionForBoard(w->device->features);
Expand Down

0 comments on commit 36752f1

Please sign in to comment.