mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
LoginServer: Mark the login window as non-closeable and non-minimizable
Previously, you could close the window and be permanently logged out.
This commit is contained in:
parent
176155c695
commit
6d6cd87b7b
Notes:
sideshowbarker
2024-07-18 02:06:21 +09:00
Author: https://github.com/trflynn89
Commit: 6d6cd87b7b
Pull-request: https://github.com/SerenityOS/serenity/pull/10553
Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ LoginWindow::LoginWindow(GUI::Window* parent)
|
||||||
resize(413, 170);
|
resize(413, 170);
|
||||||
center_on_screen();
|
center_on_screen();
|
||||||
set_resizable(false);
|
set_resizable(false);
|
||||||
|
set_minimizable(false);
|
||||||
|
set_closeable(false);
|
||||||
set_icon(GUI::Icon::default_icon("ladyball").bitmap_for_size(16));
|
set_icon(GUI::Icon::default_icon("ladyball").bitmap_for_size(16));
|
||||||
|
|
||||||
auto& widget = set_main_widget<GUI::Widget>();
|
auto& widget = set_main_widget<GUI::Widget>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue