update: new dynamic location handling
This commit is contained in:
parent
552fd7952b
commit
f478505f68
2 changed files with 6 additions and 2 deletions
|
|
@ -1196,7 +1196,7 @@ class Worker(QObject):
|
||||||
if subscription is not None:
|
if subscription is not None:
|
||||||
ProfileController.attach_subscription(self.profile, subscription)
|
ProfileController.attach_subscription(self.profile, subscription)
|
||||||
else:
|
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
|
return
|
||||||
if self.profile:
|
if self.profile:
|
||||||
try:
|
try:
|
||||||
|
|
@ -3095,6 +3095,8 @@ class HidetorPage(Page):
|
||||||
locations = self.connection_manager.get_location_info(icon_name)
|
locations = self.connection_manager.get_location_info(icon_name)
|
||||||
if icon_name == 'my_14':
|
if icon_name == 'my_14':
|
||||||
boton.setVisible(False)
|
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")
|
icon_path = os.path.join(self.btn_path, f"button_{icon_name}.png")
|
||||||
boton.setIcon(QIcon(icon_path))
|
boton.setIcon(QIcon(icon_path))
|
||||||
fallback_path = os.path.join(self.btn_path, "default_location_button.png")
|
fallback_path = os.path.join(self.btn_path, "default_location_button.png")
|
||||||
|
|
@ -3436,6 +3438,8 @@ class LocationPage(Page):
|
||||||
boton.setCheckable(True)
|
boton.setCheckable(True)
|
||||||
|
|
||||||
locations = self.connection_manager.get_location_info(icon_name)
|
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")
|
icon_path = os.path.join(self.btn_path, f"button_{icon_name}.png")
|
||||||
boton.setIcon(QIcon(icon_path))
|
boton.setIcon(QIcon(icon_path))
|
||||||
fallback_path = os.path.join(self.btn_path, "default_location_button.png")
|
fallback_path = os.path.join(self.btn_path, "default_location_button.png")
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ classifiers = [
|
||||||
"Operating System :: POSIX :: Linux",
|
"Operating System :: POSIX :: Linux",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"sp-hydra-veil-core == 1.1.6",
|
"sp-hydra-veil-core == 1.1.7",
|
||||||
"pyperclip ~= 1.9.0",
|
"pyperclip ~= 1.9.0",
|
||||||
"pyqt6 ~= 6.7.1",
|
"pyqt6 ~= 6.7.1",
|
||||||
"qrcode[pil] ~= 8.2"
|
"qrcode[pil] ~= 8.2"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue