CrashReporter: Make the window resizable

Also hide the backtrace scrollbars when they're not needed.
This commit is contained in:
Andreas Kling 2021-01-03 14:04:19 +01:00
parent 35fe1b39a2
commit bd57fff6d4
Notes: sideshowbarker 2024-07-19 00:10:16 +09:00

View file

@ -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<GUI::TextEditor>("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<GUI::Button>("close_button");
close_button.on_click = [&](auto) {