Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

add divider of statusbar back and add quit button for qs

rustdeskfbfcf862cbe8
diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart
index 78ed61a3a..3bfc3698c 100644
--- a/flutter/lib/desktop/pages/desktop_home_page.dart
+++ b/flutter/lib/desktop/pages/desktop_home_page.dart
@@ -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();
}