mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
WorkspacePicker: Hide tray applet entirely when there's only 1 workspace
Instead of collapsing to a 1x1 applet, we now hide the applet window entirely, which stops it from taking up space in the system tray.
This commit is contained in:
@@ -113,15 +113,6 @@ 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);
|
||||
set_has_alpha_channel(true);
|
||||
m_widget = &set_main_widget<DesktopStatusWidget>();
|
||||
|
||||
Reference in New Issue
Block a user