mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 10:35:21 +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();
|
||||
|
||||
|
Reference in New Issue
Block a user