Simplify desktop check in AbstractClient::setOnAllDesktops()
This commit is contained in:
parent
86fa79c33b
commit
8e8fc55b0b
1 changed files with 2 additions and 2 deletions
|
@ -539,9 +539,9 @@ void AbstractClient::leaveDesktop(VirtualDesktop *virtualDesktop)
|
||||||
|
|
||||||
void AbstractClient::setOnAllDesktops(bool b)
|
void AbstractClient::setOnAllDesktops(bool b)
|
||||||
{
|
{
|
||||||
if ((b && isOnAllDesktops()) ||
|
if (b == isOnAllDesktops()) {
|
||||||
(!b && !isOnAllDesktops()))
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
if (b) {
|
if (b) {
|
||||||
setDesktops({});
|
setDesktops({});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue