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

4
.gitignore vendored
View File

@ -51,4 +51,6 @@ lib/generated_bridge.dart
# build cache in examples
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);
Future<void> pull({force = true, quiet = false}) async {
if (bind.isDisableGroupPanel()) return;
if (!gFFI.userModel.isLogin || groupLoading.value) return;
if (!force && initialized) return;
if (!quiet) {

View File

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

View File

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

View File

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