mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +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
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,6 @@ int main(int argc, char** argv)
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
window->set_title("Crash Reporter");
|
window->set_title("Crash Reporter");
|
||||||
window->set_icon(app_icon.bitmap_for_size(16));
|
window->set_icon(app_icon.bitmap_for_size(16));
|
||||||
window->set_resizable(false);
|
|
||||||
window->resize(460, 340);
|
window->resize(460, 340);
|
||||||
window->center_on_screen();
|
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");
|
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_text(backtrace);
|
||||||
|
backtrace_text_editor.set_should_hide_unnecessary_scrollbars(true);
|
||||||
|
|
||||||
auto& close_button = *widget.find_descendant_of_type_named<GUI::Button>("close_button");
|
auto& close_button = *widget.find_descendant_of_type_named<GUI::Button>("close_button");
|
||||||
close_button.on_click = [&](auto) {
|
close_button.on_click = [&](auto) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue