mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: setting of doubleColumn on Desktop
This commit is contained in:
@@ -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------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user