mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-19 14:44:41 +01:00
opt.
This commit is contained in:
@@ -170,12 +170,12 @@ class BackupPage extends StatelessWidget {
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: () async => _onTapWebdavDl(context),
|
||||
child: Text(l10n.download),
|
||||
child: Text(l10n.restore),
|
||||
),
|
||||
UIs.width7,
|
||||
TextButton(
|
||||
onPressed: () async => _onTapWebdavUp(context),
|
||||
child: Text(l10n.upload),
|
||||
child: Text(l10n.backup),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -93,6 +93,7 @@ class _HomePageState extends State<HomePage>
|
||||
case AppLifecycleState.paused:
|
||||
// Keep running in background on Android device
|
||||
if (isAndroid && Stores.setting.bgRun.fetch()) {
|
||||
// Keep this if statement single
|
||||
if (Pros.app.moveBg) {
|
||||
BgRunMC.moveToBg();
|
||||
}
|
||||
|
||||
@@ -90,10 +90,10 @@ class _ServerPageState extends State<ServerPage>
|
||||
);
|
||||
|
||||
// Desktop doesn't support pull to refresh
|
||||
if (isDesktop) {
|
||||
return child;
|
||||
}
|
||||
if (isDesktop) return child;
|
||||
|
||||
return RefreshIndicator(
|
||||
key: ServerProvider.refreshKey,
|
||||
onRefresh: () async => await Pros.server.refreshData(onlyFailed: true),
|
||||
child: child,
|
||||
);
|
||||
|
||||
@@ -74,10 +74,7 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
static Future<void> updateTitlebarHeight() async {
|
||||
switch (Platform.operatingSystem) {
|
||||
case 'macos':
|
||||
final newTitlebarHeight = await windowManager.getTitleBarHeight();
|
||||
if (_titlebarHeight != newTitlebarHeight) {
|
||||
_titlebarHeight = newTitlebarHeight;
|
||||
}
|
||||
_titlebarHeight = 27;
|
||||
break;
|
||||
// Draw a titlebar on Linux
|
||||
case 'linux' || 'windows':
|
||||
|
||||
Reference in New Issue
Block a user