diff --git a/apps/terminal/connect_methods.py b/apps/terminal/connect_methods.py index 9e815a29a..1b8e1b64e 100644 --- a/apps/terminal/connect_methods.py +++ b/apps/terminal/connect_methods.py @@ -102,6 +102,8 @@ class AppletMethod: methods = defaultdict(list) has_applet_hosts = AppletHost.objects.filter(is_active=True).exists() + if not has_applet_hosts: + return methods applets = Applet.objects.filter(is_active=True) for applet in applets: for protocol in applet.protocols: @@ -110,7 +112,7 @@ class AppletMethod: 'label': applet.display_name, 'type': 'applet', 'icon': applet.icon, - 'disabled': not applet.is_active or not has_applet_hosts, + 'disabled': not applet.is_active, }) return methods