This commit is contained in:
rustdesk 2024-05-28 20:10:12 +08:00
parent e8d02905fe
commit df74a38b90
5 changed files with 15 additions and 3 deletions

2
.gitignore vendored
View File

@ -52,3 +52,5 @@ lib/generated_bridge.dart
examples/**/target/ examples/**/target/
# === # ===
vcpkg_installed vcpkg_installed
flutter/lib/generated_plugin_registrant.dart
libsciter.dylib

View File

@ -26,6 +26,7 @@ class GroupModel {
GroupModel(this.parent); GroupModel(this.parent);
Future<void> pull({force = true, quiet = false}) async { Future<void> pull({force = true, quiet = false}) async {
if (bind.isDisableGroupPanel()) return;
if (!gFFI.userModel.isLogin || groupLoading.value) return; if (!gFFI.userModel.isLogin || groupLoading.value) return;
if (!force && initialized) return; if (!force && initialized) return;
if (!quiet) { if (!quiet) {

View File

@ -42,7 +42,7 @@ class PeerTabModel with ChangeNotifier {
true, true,
!isWeb, !isWeb,
!(bind.isDisableAb() || bind.isDisableAccount()), !(bind.isDisableAb() || bind.isDisableAccount()),
!bind.isDisableAccount(), !(bind.isDisableGroupPanel() || bind.isDisableAccount()),
]); ]);
final List<bool> _isVisible = List.filled(maxTabCount, true, growable: false); final List<bool> _isVisible = List.filled(maxTabCount, true, growable: false);
List<bool> get isVisibleEnabled => () { List<bool> get isVisibleEnabled => () {

View File

@ -1460,6 +1460,10 @@ class RustdeskImpl {
return false; return false;
} }
bool isDisableGroupPanel({dynamic hint}) {
return false;
}
bool isDisableAccount({dynamic hint}) { bool isDisableAccount({dynamic hint}) {
return false; return false;
} }

View File

@ -2,7 +2,8 @@ use crate::{
client::file_trait::FileManager, client::file_trait::FileManager,
common::{is_keyboard_mode_supported, make_fd_to_json}, common::{is_keyboard_mode_supported, make_fd_to_json},
flutter::{ flutter::{
self, session_add, session_add_existed, session_start_, sessions, try_sync_peer_option, FlutterHandler, self, session_add, session_add_existed, session_start_, sessions, try_sync_peer_option,
FlutterHandler,
}, },
input::*, input::*,
ui_interface::{self, *}, ui_interface::{self, *},
@ -1905,6 +1906,10 @@ pub fn is_disable_account() -> SyncReturn<bool> {
SyncReturn(config::is_disable_account()) SyncReturn(config::is_disable_account())
} }
pub fn is_disable_group_panel() -> SyncReturn<bool> {
SyncReturn(LocalConfig::get_option("disable-group-panel") == "Y")
}
// windows only // windows only
pub fn is_disable_installation() -> SyncReturn<bool> { pub fn is_disable_installation() -> SyncReturn<bool> {
SyncReturn(config::is_disable_installation()) SyncReturn(config::is_disable_installation())