mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: store type
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 724;
|
||||
static const int build = 725;
|
||||
static const String engine = "3.16.8";
|
||||
static const String buildAt = "2024-01-26 21:05:29";
|
||||
static const int modifications = 2;
|
||||
static const String buildAt = "2024-01-27 21:27:49";
|
||||
static const int modifications = 4;
|
||||
static const int script = 36;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:toolbox/core/persistant_store.dart';
|
||||
import 'package:toolbox/core/utils/platform/base.dart';
|
||||
import 'package:toolbox/data/model/app/menu/server_func.dart';
|
||||
import 'package:toolbox/data/model/ssh/virtual_key.dart';
|
||||
|
||||
import '../model/app/net_view.dart';
|
||||
import '../res/default.dart';
|
||||
@@ -141,6 +142,8 @@ class SettingStore extends PersistentStore {
|
||||
late final sshVirtKeys = listProperty(
|
||||
'sshVirtKeys',
|
||||
Defaults.sshVirtKeys,
|
||||
encoder: (val) => val.index,
|
||||
decoder: (val) => VirtKey.values[val],
|
||||
);
|
||||
|
||||
late final netViewType = property(
|
||||
@@ -209,14 +212,19 @@ class SettingStore extends PersistentStore {
|
||||
/// Whether collapse UI items by default
|
||||
late final collapseUIDefault = property('collapseUIDefault', true);
|
||||
|
||||
late final serverFuncBtns = listProperty<ServerFuncBtn>('serverBtns', [
|
||||
ServerFuncBtn.terminal,
|
||||
ServerFuncBtn.sftp,
|
||||
ServerFuncBtn.container,
|
||||
ServerFuncBtn.process,
|
||||
ServerFuncBtn.pkg,
|
||||
ServerFuncBtn.snippet,
|
||||
]);
|
||||
late final serverFuncBtns = listProperty<ServerFuncBtn>(
|
||||
'serverBtns',
|
||||
[
|
||||
ServerFuncBtn.terminal,
|
||||
ServerFuncBtn.sftp,
|
||||
ServerFuncBtn.container,
|
||||
ServerFuncBtn.process,
|
||||
ServerFuncBtn.pkg,
|
||||
ServerFuncBtn.snippet,
|
||||
],
|
||||
encoder: (val) => val.index,
|
||||
decoder: (val) => ServerFuncBtn.values[val],
|
||||
);
|
||||
|
||||
// Never show these settings for users
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user