mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
CrashReporter: Make the window resizable
Also hide the backtrace scrollbars when they're not needed.
This commit is contained in:
parent
35fe1b39a2
commit
bd57fff6d4
Notes:
sideshowbarker
2024-07-19 00:10:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bd57fff6d42
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue