add divider of statusbar back and add quit button for qs

This commit is contained in:
rustdesk 2024-03-16 00:24:18 +08:00
parent 7307b84dad
commit fbfcf862cb

View File

@ -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();
}