Compare commits
1 Commits
v0.8.92-pr
...
v0.8.92-pr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79ce7cadf6 |
@@ -20,16 +20,7 @@ class Migration {
|
||||
}) async {
|
||||
_oldVersion = await preferences.getVersion();
|
||||
if (_oldVersion == currentVersion) {
|
||||
try {
|
||||
return Config.realFromJson(configMap);
|
||||
} catch (_) {
|
||||
final isV0 = configMap?['proxiesStyle'] != null;
|
||||
if (isV0) {
|
||||
_oldVersion = 0;
|
||||
} else {
|
||||
throw 'Local data is damaged. A reset is required to fix this issue.';
|
||||
}
|
||||
}
|
||||
return Config.realFromJson(configMap);
|
||||
}
|
||||
MigrationData data = MigrationData(configMap: configMap);
|
||||
if (_oldVersion == 0 && configMap != null) {
|
||||
|
||||
@@ -13,7 +13,7 @@ class InitErrorScreen extends StatelessWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Init Failed'),
|
||||
title: const Text('System Init Failed'),
|
||||
backgroundColor: colorScheme.error,
|
||||
foregroundColor: colorScheme.onError,
|
||||
elevation: 0,
|
||||
@@ -24,6 +24,7 @@ class InitErrorScreen extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// 1. Header Section
|
||||
Row(
|
||||
children: [
|
||||
Icon(
|
||||
|
||||
@@ -88,7 +88,9 @@ class GlobalState {
|
||||
configMap,
|
||||
sync: (data) async {
|
||||
final newConfigMap = data.configMap;
|
||||
final config = Config.realFromJson(newConfigMap);
|
||||
final config = newConfigMap != null
|
||||
? Config.fromJson(newConfigMap)
|
||||
: Config(themeProps: defaultThemeProps);
|
||||
await Future.wait([
|
||||
database.restore(data.profiles, data.scripts, data.rules, data.links),
|
||||
preferences.saveConfig(config),
|
||||
|
||||
@@ -30,7 +30,7 @@ class _EditProfileViewState extends State<EditProfileView> {
|
||||
late final TextEditingController _labelController;
|
||||
late final TextEditingController _urlController;
|
||||
late final TextEditingController _autoUpdateDurationController;
|
||||
late bool _autoUpdate;
|
||||
late final bool _autoUpdate;
|
||||
String? _rawText;
|
||||
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
|
||||
final _fileInfoNotifier = ValueNotifier<FileInfo?>(null);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: fl_clash
|
||||
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
|
||||
publish_to: 'none'
|
||||
version: 0.8.92+2026012403
|
||||
version: 0.8.92+2026012301
|
||||
environment:
|
||||
sdk: '>=3.8.0 <4.0.0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user