update: updated custom resolution popup
This commit is contained in:
parent
97b2ac5d0b
commit
d085b3204c
2 changed files with 19 additions and 5 deletions
|
|
@ -4444,10 +4444,17 @@ class ScreenPage(Page):
|
||||||
host_w = self.custom_window.host_screen_width
|
host_w = self.custom_window.host_screen_width
|
||||||
host_h = self.custom_window.host_screen_height
|
host_h = self.custom_window.host_screen_height
|
||||||
|
|
||||||
if width > host_w or height > host_h:
|
adjusted = False
|
||||||
QMessageBox.warning(
|
if width > host_w:
|
||||||
dialog, "Invalid Resolution", f"Resolution cannot be larger than your screen size ({host_w}x{host_h}).")
|
width = host_w - 50
|
||||||
return
|
adjusted = True
|
||||||
|
if height > host_h:
|
||||||
|
height = host_h - 50
|
||||||
|
adjusted = True
|
||||||
|
|
||||||
|
if adjusted:
|
||||||
|
QMessageBox.information(
|
||||||
|
dialog, "Notice", "Adjusted to fit host size")
|
||||||
|
|
||||||
if width > 10000 or height > 10000:
|
if width > 10000 or height > 10000:
|
||||||
QMessageBox.warning(
|
QMessageBox.warning(
|
||||||
|
|
@ -10038,10 +10045,17 @@ class FastRegistrationPage(Page):
|
||||||
return
|
return
|
||||||
host_w = self.update_status.host_screen_width
|
host_w = self.update_status.host_screen_width
|
||||||
host_h = self.update_status.host_screen_height
|
host_h = self.update_status.host_screen_height
|
||||||
|
adjusted = False
|
||||||
if width > host_w:
|
if width > host_w:
|
||||||
width = host_w - 50
|
width = host_w - 50
|
||||||
|
adjusted = True
|
||||||
if height > host_h:
|
if height > host_h:
|
||||||
height = host_h - 50
|
height = host_h - 50
|
||||||
|
adjusted = True
|
||||||
|
|
||||||
|
if adjusted:
|
||||||
|
QMessageBox.information(
|
||||||
|
dialog, "Notice", "Adjusted to fit host size")
|
||||||
self.selected_values['resolution'] = f"{width}x{height}"
|
self.selected_values['resolution'] = f"{width}x{height}"
|
||||||
self.create_interface_elements()
|
self.create_interface_elements()
|
||||||
dialog.accept()
|
dialog.accept()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "sp-hydra-veil-gui"
|
name = "sp-hydra-veil-gui"
|
||||||
version = "2.2.2"
|
version = "2.2.3"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Simplified Privacy" },
|
{ name = "Simplified Privacy" },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue