add divider of statusbar back and add quit button for qs
This commit is contained in:
parent
7307b84dad
commit
fbfcf862cb
1 changed files with 13 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||
Timer? _updateTimer;
|
||||
bool isCardClosed = false;
|
||||
|
||||
RxBool _editHover = false.obs;
|
||||
final RxBool _editHover = false.obs;
|
||||
|
||||
final GlobalKey _childKey = GlobalKey();
|
||||
|
||||
|
|
@ -129,6 +129,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||
];
|
||||
if (isIncomingOnly) {
|
||||
children.addAll([
|
||||
Divider(),
|
||||
OnlineStatusWidget(
|
||||
onSvcStatusChanged: () {
|
||||
if (_isInHomePage()) {
|
||||
|
|
@ -531,6 +532,17 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||
);
|
||||
}
|
||||
}
|
||||
if (bind.isIncomingOnly()) {
|
||||
return Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: OutlinedButton(
|
||||
onPressed: () {
|
||||
SystemNavigator.pop(); // Close the application
|
||||
},
|
||||
child: Text(translate('Quit')),
|
||||
),
|
||||
).marginAll(14);
|
||||
}
|
||||
return Container();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue