mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-28 21:37:50 +02:00
added autostart feature
This commit is contained in:
@ -221,6 +221,7 @@ void MainWindow::init() {
|
||||
}
|
||||
}
|
||||
|
||||
autostart = core::args["autostart"].b();
|
||||
initComplete = true;
|
||||
|
||||
core::moduleManager.doPostInitAll();
|
||||
@ -385,6 +386,12 @@ void MainWindow::draw() {
|
||||
}
|
||||
if (playButtonLocked && !tmpPlaySate) { style::endDisabled(); }
|
||||
|
||||
// Handle auto-start
|
||||
if (autostart) {
|
||||
autostart = false;
|
||||
setPlayState(true);
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
float origY = ImGui::GetCursorPosY();
|
||||
|
||||
|
@ -63,6 +63,7 @@ private:
|
||||
int selectedWindow = 0;
|
||||
|
||||
bool initComplete = false;
|
||||
bool autostart = false;
|
||||
|
||||
EventHandler<VFOManager::VFO*> vfoCreatedHandler;
|
||||
};
|
Reference in New Issue
Block a user