mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix
This commit is contained in:
@@ -2,7 +2,6 @@ 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,9 +140,7 @@ class SettingStore extends PersistentStore {
|
||||
|
||||
late final sshVirtKeys = listProperty(
|
||||
'sshVirtKeys',
|
||||
Defaults.sshVirtKeys,
|
||||
encoder: (val) => val.index,
|
||||
decoder: (val) => VirtKey.values[val],
|
||||
Defaults.sshVirtKeys.map((e) => e.index).toList(),
|
||||
);
|
||||
|
||||
late final netViewType = property(
|
||||
@@ -212,7 +209,7 @@ class SettingStore extends PersistentStore {
|
||||
/// Whether collapse UI items by default
|
||||
late final collapseUIDefault = property('collapseUIDefault', true);
|
||||
|
||||
late final serverFuncBtns = listProperty<ServerFuncBtn>(
|
||||
late final serverFuncBtns = listProperty(
|
||||
'serverBtns',
|
||||
[
|
||||
ServerFuncBtn.terminal,
|
||||
@@ -221,9 +218,7 @@ class SettingStore extends PersistentStore {
|
||||
ServerFuncBtn.process,
|
||||
ServerFuncBtn.pkg,
|
||||
ServerFuncBtn.snippet,
|
||||
],
|
||||
encoder: (val) => val.index,
|
||||
decoder: (val) => ServerFuncBtn.values[val],
|
||||
].map((e) => e.index).toList(),
|
||||
);
|
||||
|
||||
// Never show these settings for users
|
||||
|
||||
Reference in New Issue
Block a user