gtk-ng: use single if expression instead of block

pull/8166/head
Jeffrey C. Ollie 2025-08-08 13:36:45 -05:00
parent 0f67282dfa
commit cae60f7c29
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 1 additions and 3 deletions

View File

@ -906,9 +906,7 @@ pub const Window = extern struct {
.tabs => {
// *Conditionally* disable the tab bar when maximized, the titlebar
// style is tabs, and gtk-titlebar-hide-when-maximized is set.
if (self.isMaximized() and config.@"gtk-titlebar-hide-when-maximized") {
return false;
}
if (self.isMaximized() and config.@"gtk-titlebar-hide-when-maximized") return false;
// If the titlebar style is tabs the tab bar must always be visible.
return true;