mirror of
https://github.com/gtalent/sc9k.git
synced 2025-04-22 15:18:33 -05:00
Compare commits
No commits in common. "9f57ba69ac877005d88ad4e0aeb75c35463217b9" and "af07f8853a70756f778272b9ec9336954a3bee66" have entirely different histories.
9f57ba69ac
...
af07f8853a
@ -10,5 +10,5 @@
|
||||
|
||||
constexpr auto MaxCameraPresets = 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->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
|
||||
{
|
||||
@ -132,7 +144,7 @@ void MainWindow::setupMenu() {
|
||||
R"(Slide Controller 9000 - %1
|
||||
Build date: %2
|
||||
|
||||
Copyright 2021 - 2025 Gary Talent (gary@drinkingtea.net)
|
||||
Copyright 2021 - 2024 Gary Talent (gary@drinkingtea.net)
|
||||
Slide Controller 9000 is released under the MPL 2.0
|
||||
Built on Qt library under LGPL 2.0)").arg(Version, __DATE__));
|
||||
about.exec();
|
||||
|
Loading…
x
Reference in New Issue
Block a user