Automatically size the settings window
This commit is contained in:
parent
3ec153aca2
commit
e7401a6bd1
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue