Skip to content

Commit

Permalink
remove not needed call
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Dec 19, 2024
1 parent bf1a585 commit 915ada8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/src/settings/yaru_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class YaruGtkSettings extends YaruSettings {
_wmPrefSettings?.addListener(
() => _buttonLayoutController.add(getButtonLayout()),
);
getButtonLayout();
}

@override
Expand Down
18 changes: 9 additions & 9 deletions lib/src/widgets/yaru_title_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,18 @@ class YaruTitleBar extends StatelessWidget implements PreferredSizeWidget {
padding: bPadding,
child: Row(
children: [
if (isMinimizable == true &&
leftButtons.contains(YaruWindowControlType.minimize))
minimizeButton,
if (isRestorable == true &&
leftButtons.contains(YaruWindowControlType.maximize))
restoreButton,
if (isMaximizable == true &&
leftButtons.contains(YaruWindowControlType.maximize))
maximizeButton,
if (isClosable == true &&
leftButtons.contains(YaruWindowControlType.close))
closeButton,
if (isMaximizable == true &&
leftButtons.contains(YaruWindowControlType.maximize))
maximizeButton,
if (isRestorable == true &&
leftButtons.contains(YaruWindowControlType.maximize))
restoreButton,
if (isMinimizable == true &&
leftButtons.contains(YaruWindowControlType.minimize))
minimizeButton,
].withSpacing(bSpacing),
),
);
Expand Down

0 comments on commit 915ada8

Please sign in to comment.