mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refactor: Fix readability-simplify-boolean-expr
This commit is contained in:
@@ -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(); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user