mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: ssh page
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 730;
|
||||
static const int build = 731;
|
||||
static const String engine = "3.16.8";
|
||||
static const String buildAt = "2024-01-29 10:56:10";
|
||||
static const int modifications = 2;
|
||||
static const String buildAt = "2024-01-30 10:56:43";
|
||||
static const int modifications = 4;
|
||||
static const int script = 36;
|
||||
}
|
||||
|
||||
@@ -317,10 +317,16 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
|
||||
}
|
||||
|
||||
void _initVirtKeys() {
|
||||
final virtKeys = Stores.setting.sshVirtKeys
|
||||
.fetch()
|
||||
.map((e) => VirtKey.values[e])
|
||||
.toList();
|
||||
final virtKeys = () {
|
||||
try {
|
||||
return Stores.setting.sshVirtKeys
|
||||
.fetch()
|
||||
.map((e) => VirtKey.values[e])
|
||||
.toList();
|
||||
} catch (_) {
|
||||
return VirtKey.values;
|
||||
}
|
||||
}();
|
||||
|
||||
for (int len = 0; len < virtKeys.length; len += 7) {
|
||||
if (len + 7 > virtKeys.length) {
|
||||
|
||||
Reference in New Issue
Block a user