From bd57fff6d428df71cb9d5bb8e1a2fe4883f02faf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 3 Jan 2021 14:04:19 +0100 Subject: [PATCH] CrashReporter: Make the window resizable Also hide the backtrace scrollbars when they're not needed. --- Applications/CrashReporter/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/CrashReporter/main.cpp b/Applications/CrashReporter/main.cpp index 39431e1f67..9a190186ac 100644 --- a/Applications/CrashReporter/main.cpp +++ b/Applications/CrashReporter/main.cpp @@ -132,7 +132,6 @@ int main(int argc, char** argv) auto window = GUI::Window::construct(); window->set_title("Crash Reporter"); window->set_icon(app_icon.bitmap_for_size(16)); - window->set_resizable(false); window->resize(460, 340); window->center_on_screen(); @@ -164,6 +163,7 @@ int main(int argc, char** argv) auto& backtrace_text_editor = *widget.find_descendant_of_type_named("backtrace_text_editor"); backtrace_text_editor.set_text(backtrace); + backtrace_text_editor.set_should_hide_unnecessary_scrollbars(true); auto& close_button = *widget.find_descendant_of_type_named("close_button"); close_button.on_click = [&](auto) {