Skip to content

Commit

Permalink
update settings help marker
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 22, 2023
1 parent 3edd35e commit 4ec82ff
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions source/views/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,18 @@ void Settings::drawGeneralTab() {
ImGui::HelpMarker("Exit mpv with the quit-watch-later command.");
ImGui::Unindent();
ImGui::Text("Debug");
ImGui::SameLine();
ImGui::HelpMarker(
"Controls the debug settings used on startup.\n"
"It can be changed later in debug window, but won't be saved.");
ImGui::Indent();
const char *items[] = {"fatal", "error", "warn", "info", "v", "debug", "trace", "no"};
static int current;
for (int i = 0; i < IM_ARRAYSIZE(items); i++) {
if (strcmp(items[i], config->logLevel.c_str()) == 0) current = i;
}
if (ImGui::Combo("Log Level*", &current, items, IM_ARRAYSIZE(items))) config->logLevel = items[current];
ImGui::SameLine();
ImGui::HelpMarker(
"Controls the log level used on startup.\n"
"It can be changed later in debug window, but won't be saved.");
ImGui::InputInt("Log Limit*", &config->logLimit, 0);
ImGui::SameLine();
ImGui::HelpMarker(
"Controls the log limit used on startup.\n"
"It can be changed later in debug window, but won't be saved.");
ImGui::Unindent();
ImGui::EndTabItem();
}
Expand Down

0 comments on commit 4ec82ff

Please sign in to comment.