Automatically size the settings window

This commit is contained in:
blankie 2023-01-03 16:13:29 +07:00
parent 3ec153aca2
commit e7401a6bd1
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 3 deletions

View File

@ -4,13 +4,11 @@
#include "config.h"
static inline void settings_window(Config& inactive_config, bool* show_settings_window) {
// by default, the settings window is a bit cramped
ImGui::SetNextWindowSize(ImVec2(665, 80), ImGuiCond_FirstUseEver);
if (!ImGui::Begin("Settings", show_settings_window)) {
ImGui::End();
return;
}
ImGui::TextWrapped("Modifying logcat command will take effect after closing this window and will restart logcat");
ImGui::Text("Modifying logcat command will take effect after closing this window and will restart logcat");
ImGui::InputTextWithHint("Logcat command", "adb logcat -Dv 'threadtime UTC epoch usec'", &inactive_config.logcat_command);
ImGui::End();
}