feat: ios support (#194)

This commit is contained in:
Levi authored and GitHub committed 2023-09-04 11:28:07 +08:00
1 parent 06766eea56
commit b00f4a1ed0
46 files changed
+274 -54

No files matched your search

@@ -225,7 +225,7 @@ class AppController extends GetxController with WindowListener, TrayListener {
return _defaultStartConfig!;
}
_defaultStartConfig = StartConfig();
if (!Util.isUnix()) {
if (!Util.supportUnixSocket()) {
// not support unix socket, use tcp
_defaultStartConfig!.network = "tcp";
_defaultStartConfig!.address = "127.0.0.1:0";
@@ -342,13 +342,11 @@ class SettingView extends GetView<SettingController> {
await debounceSave(needRestart: true);
},
items: [
!Util.isMobile()
? const DropdownMenuItem<String>(
value: 'tcp',
child: Text('TCP'),
)
: null,
Util.isUnix()
const DropdownMenuItem<String>(
value: 'tcp',
child: Text('TCP'),
),
Util.supportUnixSocket()
? const DropdownMenuItem<String>(
value: 'unix',
child: Text('Unix'),