add: store exes & presets

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-11-01 23:47:37 +08:00
parent 12c8543352
commit 84921de7a7
4 changed files with 147 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hive_ce_flutter/adapters.dart';
part 'proxy_command_config.freezed.dart';
part 'proxy_command_config.g.dart';

View File

@@ -228,6 +228,10 @@ class SettingStore extends HiveStore {
late final betaTest = propertyDefault('betaTest', false);
late final proxyCmdCustomExecs = listProperty('proxyCmdCustomExecs');
late final proxyCmdCustomPresets = listProperty('proxyCmdCustomPresets');
/// For desktop only.
/// Record the position and size of the window.
late final windowState = property<WindowState>(