new: setting of doubleColumn on Desktop

This commit is contained in:
lollipopkit
2023-09-07 18:54:35 +08:00
parent b55b8bf831
commit 03f9e88bad
13 changed files with 58 additions and 21 deletions

View File

@@ -27,6 +27,8 @@ class SettingStore extends PersistentStore {
'timeOut',
5,
);
/// Duration of [timeout]
Duration get timeoutD => Duration(seconds: timeout.fetch());
/// Record history of SFTP path and etc.
late final recordHistory = StoreProperty(
@@ -64,9 +66,6 @@ class SettingStore extends PersistentStore {
defaultLaunchPageIdx,
);
// Version of store db
late final storeVersion = StoreProperty(box, 'storeVersion', 0);
late final termColorIdx = StoreProperty(box, 'termColorIdx', 0);
// Max retry count when connect to server
@@ -184,6 +183,17 @@ class SettingStore extends PersistentStore {
false,
);
/// Duration of [timeout]
Duration get timeoutD => Duration(seconds: timeout.fetch());
/// Use double column servers page on Desktop
late final doubleColumnServersPage = StoreProperty(
box,
'doubleColumnServersPage',
isDesktop,
);
// Never show these settings for users
// ------BEGIN------
/// Version of store db
late final storeVersion = StoreProperty(box, 'storeVersion', 0);
// ------END------
}