mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Refactoring
This commit is contained in:
parent
5620a76679
commit
fdde364307
11 changed files with 53 additions and 26 deletions
|
@ -164,7 +164,7 @@ MainWindow::MainWindow():
|
|||
QTimer::singleShot(0, this, SLOT(autoClose()));
|
||||
}
|
||||
|
||||
ga.sendPageView("Companion");
|
||||
ga.sendEvent(getBoardName(GetCurrentFirmware()->getBoard()), "Start Companion");
|
||||
}
|
||||
|
||||
void MainWindow::displayWarnings()
|
||||
|
@ -523,7 +523,7 @@ void MainWindow::startFirmwareDownload(QString url, QString filename)
|
|||
downloadDialog * dd = new downloadDialog(this, url, filename);
|
||||
connect(dd, SIGNAL(accepted()), this, SLOT(firmwareDownloadAccepted()));
|
||||
dd->exec();
|
||||
ga.sendEvent("Firmwares", "Download", url);
|
||||
ga.sendEvent(getBoardName(GetCurrentFirmware()->getBoard()), "Download", url);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1468,7 +1468,7 @@ void MainWindow::updateMenus()
|
|||
updateIconSizeActions();
|
||||
updateIconThemeActions();
|
||||
|
||||
setWindowTitle(tr("OpenTX Companion - FW: %1 - Profile: %2").arg(GetCurrentFirmware()->name).arg( g.profile[g.id()].name() ));
|
||||
setWindowTitle(tr("OpenTX Companion - FW: %1 - Profile: %2").arg(GetCurrentFirmware()->getName()).arg( g.profile[g.id()].name() ));
|
||||
}
|
||||
|
||||
MdiChild *MainWindow::createMdiChild()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue