disable-group-panel for https://github.com/rustdesk/rustdesk-server-pro/issues/250
This commit is contained in:
parent
e8d02905fe
commit
df74a38b90
2
.gitignore
vendored
2
.gitignore
vendored
@ -52,3 +52,5 @@ lib/generated_bridge.dart
|
||||
examples/**/target/
|
||||
# ===
|
||||
vcpkg_installed
|
||||
flutter/lib/generated_plugin_registrant.dart
|
||||
libsciter.dylib
|
||||
|
@ -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) {
|
||||
|
@ -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 => () {
|
||||
|
@ -1460,6 +1460,10 @@ class RustdeskImpl {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isDisableGroupPanel({dynamic hint}) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isDisableAccount({dynamic hint}) {
|
||||
return false;
|
||||
}
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user