mirror of
https://github.com/gtalent/sc9k.git
synced 2025-05-10 08:41:38 -05:00
Compare commits
No commits in common. "master" and "release-1.0.0-beta6" have entirely different histories.
master
...
release-1.
@ -10,5 +10,5 @@
|
|||||||
|
|
||||||
constexpr auto MaxCameraPresets = 9;
|
constexpr auto MaxCameraPresets = 9;
|
||||||
constexpr auto MaxViews = 9;
|
constexpr auto MaxViews = 9;
|
||||||
constexpr auto Version = "1.0.0";
|
constexpr auto Version = "1.0-beta6";
|
||||||
|
|
||||||
|
@ -121,6 +121,18 @@ void MainWindow::setupMenu() {
|
|||||||
});
|
});
|
||||||
menu->addAction(cameraPresetAct);
|
menu->addAction(cameraPresetAct);
|
||||||
}
|
}
|
||||||
|
menu->addSeparator();
|
||||||
|
auto const rebootAct = new QAction(tr("&Reboot"), this);
|
||||||
|
connect(rebootAct, &QAction::triggered, &m_cameraClient, [this] {
|
||||||
|
QMessageBox confirm(this);
|
||||||
|
confirm.setText(tr("Are you sure you want to reboot the camera? This will take about 20 seconds."));
|
||||||
|
confirm.addButton(tr("&No"), QMessageBox::ButtonRole::NoRole);
|
||||||
|
confirm.addButton(tr("&Yes"), QMessageBox::ButtonRole::YesRole);
|
||||||
|
if (confirm.exec()) {
|
||||||
|
m_cameraClient.reboot();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
menu->addAction(rebootAct);
|
||||||
}
|
}
|
||||||
// help menu
|
// help menu
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user