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

BUG: 419408
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 8086707d1c
commit 3714dcc337
  1. 3
      src/tabbox/clientmodel.cpp

@ -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) {
Window *desktopClient = tabBox->desktopClient();
if (desktopClient) {

Loading…
Cancel
Save