An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
ios add settings tab
21pages3eeed39f521f
diff --git a/flutter/lib/main.dart b/flutter/lib/main.dartindex dbf563de2..6f9869ceb 100644--- a/flutter/lib/main.dart+++ b/flutter/lib/main.dart@@ -395,7 +395,7 @@ class _AppState extends State<App> {themeMode: MyTheme.currentThemeMode(),home: isDesktop? const DesktopTabPage()- : !isAndroid+ : isWeb? WebHomePage(): HomePage(),localizationsDelegates: const [diff --git a/flutter/lib/mobile/pages/connection_page.dart b/flutter/lib/mobile/pages/connection_page.dartindex 3b0ddff34..4a14f8466 100644--- a/flutter/lib/mobile/pages/connection_page.dart+++ b/flutter/lib/mobile/pages/connection_page.dart@@ -28,7 +28,7 @@ class ConnectionPage extends StatefulWidget implements PageShape {final title = translate("Connection");@override- final appBarActions = !isAndroid ? <Widget>[const WebMenu()] : <Widget>[];+ final appBarActions = isWeb ? <Widget>[const WebMenu()] : <Widget>[];@overrideState<ConnectionPage> createState() => _ConnectionPageState();diff --git a/flutter/lib/mobile/pages/settings_page.dart b/flutter/lib/mobile/pages/settings_page.dartindex e7e6daade..431cd0f35 100644--- a/flutter/lib/mobile/pages/settings_page.dart+++ b/flutter/lib/mobile/pages/settings_page.dart@@ -424,41 +424,45 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {},)]),- SettingsSection(- title: Text(translate("Recording")),- tiles: [- SettingsTile.switchTile(- title: Text(translate('Automatically record incoming sessions')),- leading: Icon(Icons.videocam),- description: FutureBuilder(- builder: (ctx, data) => Offstage(- offstage: !data.hasData,- child: Text("${translate("Directory")}: ${data.data}")),- future: bind.mainDefaultVideoSaveDirectory()),- initialValue: _autoRecordIncomingSession,- onToggle: (v) async {- await bind.mainSetOption(- key: "allow-auto-record-incoming",- value: bool2option("allow-auto-record-incoming", v));- final newValue = option2bool(- 'allow-auto-record-incoming',- await bind.mainGetOption(- key: 'allow-auto-record-incoming'));- setState(() {- _autoRecordIncomingSession = newValue;- });- },- ),- ],- ),- SettingsSection(- title: Text(translate("Share Screen")),- tiles: shareScreenTiles,- ),- SettingsSection(- title: Text(translate("Enhancements")),- tiles: enhancementsTiles,- ),+ if (isAndroid)+ SettingsSection(+ title: Text(translate("Recording")),+ tiles: [+ SettingsTile.switchTile(+ title:+ Text(translate('Automatically record incoming sessions')),+ leading: Icon(Icons.videocam),+ description: FutureBuilder(+ builder: (ctx, data) => Offstage(+ offstage: !data.hasData,+ child: Text("${translate("Directory")}: ${data.data}")),+ future: bind.mainDefaultVideoSaveDirectory()),+ initialValue: _autoRecordIncomingSession,+ onToggle: (v) async {+ await bind.mainSetOption(+ key: "allow-auto-record-incoming",+ value: bool2option("allow-auto-record-incoming", v));+ final newValue = option2bool(+ 'allow-auto-record-incoming',+ await bind.mainGetOption(+ key: 'allow-auto-record-incoming'));+ setState(() {+ _autoRecordIncomingSession = newValue;+ });+ },+ ),+ ],+ ),+ if (isAndroid)+ SettingsSection(+ title: Text(translate("Share Screen")),+ tiles: shareScreenTiles,+ ),+ if (isAndroid)+ SettingsSection(+ title: Text(translate("Enhancements")),+ tiles: enhancementsTiles,+ ),SettingsSection(title: Text(translate("About")),tiles: [