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/
|
examples/**/target/
|
||||||
# ===
|
# ===
|
||||||
vcpkg_installed
|
vcpkg_installed
|
||||||
|
flutter/lib/generated_plugin_registrant.dart
|
||||||
|
libsciter.dylib
|
||||||
|
@ -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) {
|
||||||
|
@ -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 => () {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user