mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Bring back tracking config window when clicking
This commit is contained in:
parent
12b360159d
commit
d29fa4f031
3 changed files with 8 additions and 6 deletions
|
|
@ -78,17 +78,15 @@ namespace satdump
|
|||
ImGui::Separator();
|
||||
renderSelectionMenu();
|
||||
ImGui::Spacing();
|
||||
if (ImGui::CollapsingHeader("Object Information")){
|
||||
if (ImGui::CollapsingHeader("Object Information"))
|
||||
renderObjectStatus();
|
||||
}
|
||||
if (ImGui::CollapsingHeader("Rotator Configuration")){
|
||||
if (ImGui::CollapsingHeader("Rotator Configuration"))
|
||||
renderRotatorStatus();
|
||||
}
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
ImGui::Spacing();
|
||||
if (ImGui::Button("Schedule and Config"))
|
||||
show_window_config = true;
|
||||
config_window_was_asked = show_window_config = true;
|
||||
|
||||
renderConfigWindow();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ namespace satdump
|
|||
bool backend_needs_update = true;
|
||||
|
||||
private: // Config Window
|
||||
bool config_window_was_asked = false;
|
||||
bool show_window_config = false;
|
||||
|
||||
private: // Current satellite
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ namespace satdump
|
|||
ImGui::EndTabBar();
|
||||
}
|
||||
|
||||
// ImGuiUtils_BringCurrentWindowToFront();
|
||||
if (config_window_was_asked)
|
||||
ImGuiUtils_BringCurrentWindowToFront();
|
||||
config_window_was_asked = false;
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue