mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
WorkspacePicker: Hide applet if size == 0
This commit is contained in:
committed by
Andreas Kling
parent
3ee5bdcfb7
commit
a1ddc44c07
Notes:
sideshowbarker
2024-07-18 03:23:00 +09:00
Author: https://github.com/filiphsps Commit: https://github.com/SerenityOS/serenity/commit/a1ddc44c07 Pull-request: https://github.com/SerenityOS/serenity/pull/14569 Reviewed-by: https://github.com/kleinesfilmroellchen ✅
@@ -104,6 +104,12 @@ private:
|
||||
DesktopStatusWindow::DesktopStatusWindow()
|
||||
{
|
||||
GUI::Desktop::the().on_receive_screen_rects([&](GUI::Desktop&) {
|
||||
auto& desktop = GUI::Desktop::the();
|
||||
if (desktop.workspace_rows() == 1 && desktop.workspace_columns() == 1)
|
||||
resize(0, 0);
|
||||
else
|
||||
resize(28, 16);
|
||||
|
||||
update();
|
||||
});
|
||||
set_window_type(GUI::WindowType::Applet);
|
||||
|
||||
Reference in New Issue
Block a user