diff --git a/gui/__main__.py b/gui/__main__.py index 9d6bd4f..c363f00 100755 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -1196,7 +1196,7 @@ class Worker(QObject): if subscription is not None: ProfileController.attach_subscription(self.profile, subscription) else: - self.change_page.emit('The billing code associated with this profile is invalid.', True) + self.change_page.emit('The billing code is invalid.', True) return if self.profile: try: @@ -3095,6 +3095,8 @@ class HidetorPage(Page): locations = self.connection_manager.get_location_info(icon_name) if icon_name == 'my_14': boton.setVisible(False) + if locations and not(hasattr(locations, 'is_proxy_capable') and locations.is_proxy_capable): + boton.setVisible(False) icon_path = os.path.join(self.btn_path, f"button_{icon_name}.png") boton.setIcon(QIcon(icon_path)) fallback_path = os.path.join(self.btn_path, "default_location_button.png") @@ -3436,6 +3438,8 @@ class LocationPage(Page): boton.setCheckable(True) locations = self.connection_manager.get_location_info(icon_name) + if locations and not(hasattr(locations, 'is_wireguard_capable') and locations.is_wireguard_capable): + boton.setVisible(False) icon_path = os.path.join(self.btn_path, f"button_{icon_name}.png") boton.setIcon(QIcon(icon_path)) fallback_path = os.path.join(self.btn_path, "default_location_button.png") diff --git a/pyproject.toml b/pyproject.toml index ed3838c..c33be34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Operating System :: POSIX :: Linux", ] dependencies = [ - "sp-hydra-veil-core == 1.1.6", + "sp-hydra-veil-core == 1.1.7", "pyperclip ~= 1.9.0", "pyqt6 ~= 6.7.1", "qrcode[pil] ~= 8.2"