add setting for showing minimize button
This commit is contained in:
parent
66cfb0e2c6
commit
9c83ae573a
3 changed files with 44 additions and 15 deletions
|
|
@ -51,6 +51,17 @@ final class const Appbar({
|
|||
actions: [
|
||||
...actions,
|
||||
if (!(Platform.isAndroid || Platform.isIOS)) ...[
|
||||
if (ref
|
||||
.watch(SettingsController.provider)
|
||||
.whenOrNull(
|
||||
data: (settings) => settings.showMinimizeButton,
|
||||
) ??
|
||||
false)
|
||||
IconButton(
|
||||
tooltip: "Minimize window",
|
||||
onPressed: windowManager.minimize,
|
||||
icon: const Icon(Icons.minimize),
|
||||
),
|
||||
if (!Platform.isLinux)
|
||||
IconButton(
|
||||
tooltip: "Maximize window",
|
||||
|
|
|
|||
Loading…
Reference in a new issue