refactor: Fix readability-simplify-boolean-expr

This commit is contained in:
Lars Toenning
2025-10-25 22:45:55 +02:00
parent 469d9b8421
commit 7579ce8ba4
19 changed files with 22 additions and 37 deletions

View File

@@ -48,11 +48,7 @@ namespace swift::gui
if (!this->isVisible()) { return false; }
// further checks
if (this->isFloating())
{
if (this->isMinimized()) { return false; }
return true;
}
if (this->isFloating()) { return !this->isMinimized(); }
else { return isSelectedDockWidget(); }
}