disable-group-panel for https://github.com/rustdesk/rustdesk-server-pro/issues/250
This commit is contained in:
parent
e8d02905fe
commit
df74a38b90
5 changed files with 15 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue