fix & opt.

- fix: `sftpGoPath`
- opt.: `PersistentStore.toJson`
- rm: `first` store
- opt.: log print
This commit is contained in:
lollipopkit
2023-10-27 18:13:02 +08:00
parent 6579190ae4
commit 92bb653e81
14 changed files with 38 additions and 51 deletions

View File

@@ -8,9 +8,6 @@ import '../res/default.dart';
class SettingStore extends PersistentStore {
SettingStore() : super('setting');
/// Convert all settings into json
Map<String, dynamic> toJson() => {for (var e in box.keys) e: box.get(e)};
// ------BEGIN------
//
// These settings are not displayed in the settings page
@@ -220,6 +217,9 @@ class SettingStore extends PersistentStore {
/// Open SFTP with last viewed path
late final sftpOpenLastPath = StoreProperty(box, 'sftpOpenLastPath', true);
/// Show tip of suspend
late final showSuspendTip = StoreProperty(box, 'showSuspendTip', true);
// Never show these settings for users
//
// ------BEGIN------