tabbox: Prevent including "show desktop" entry if there are no other windows

BUG: 419408
This commit is contained in:
Vlad Zahorodnii 2024-02-06 14:40:35 +02:00
parent 8086707d1c
commit 3714dcc337

View file

@ -223,7 +223,8 @@ void ClientModel::createClientList(bool partialReset)
}); });
} }
if (tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication if (!m_mutableClientList.isEmpty()
&& tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication
&& tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient) { && tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient) {
Window *desktopClient = tabBox->desktopClient(); Window *desktopClient = tabBox->desktopClient();
if (desktopClient) { if (desktopClient) {