opt: mobile UI

This commit is contained in:
csf 2022-07-30 13:51:06 +08:00
parent 1a4f0507a2
commit 86cc71f4d2
3 changed files with 6 additions and 4 deletions

View File

@ -199,6 +199,7 @@ class FileModel extends ChangeNotifier {
onClose() {
SmartDialog.dismiss();
jobReset();
// save config
Map<String, String> msg = Map();

View File

@ -28,6 +28,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
void initState() {
super.initState();
FFI.connect(widget.id, isFileTransfer: true);
showLoading(translate('Connecting...'));
FFI.ffiModel.updateEventListener(widget.id);
Wakelock.enable();
}

View File

@ -26,11 +26,11 @@ class SettingsPage extends StatefulWidget implements PageShape {
_SettingsState createState() => _SettingsState();
}
class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
static const url = 'https://rustdesk.com/';
final _hasIgnoreBattery = androidVersion >= 26;
var _ignoreBatteryOpt = false;
const url = 'https://rustdesk.com/';
final _hasIgnoreBattery = androidVersion >= 26;
var _ignoreBatteryOpt = false;
class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
@override
void initState() {
super.initState();