Updated pyprooject file / timezones / supported browsers / payment page
This commit is contained in:
		
							parent
							
								
									498891d655
								
							
						
					
					
						commit
						949cb9e162
					
				
					 2 changed files with 5 additions and 20 deletions
				
			
		| 
						 | 
					@ -233,7 +233,7 @@ class WorkerThread(QThread):
 | 
				
			||||||
            self.check_for_update()
 | 
					            self.check_for_update()
 | 
				
			||||||
            locations = LocationController.get_all()
 | 
					            locations = LocationController.get_all()
 | 
				
			||||||
            browser = ApplicationVersionController.get_all()
 | 
					            browser = ApplicationVersionController.get_all()
 | 
				
			||||||
            all_browser_versions = [f"{browser.application_code}:{browser.version_number}" for browser in browser]
 | 
					            all_browser_versions = [f"{browser.application_code}:{browser.version_number}" for browser in browser if browser.supported]
 | 
				
			||||||
            all_location_codes = [f"{location.country_code}_{location.code}" for location in locations]
 | 
					            all_location_codes = [f"{location.country_code}_{location.code}" for location in locations]
 | 
				
			||||||
            self.sync_output.emit(all_location_codes, all_browser_versions, True, False, locations, False)
 | 
					            self.sync_output.emit(all_location_codes, all_browser_versions, True, False, locations, False)
 | 
				
			||||||
        except Exception as e:
 | 
					        except Exception as e:
 | 
				
			||||||
| 
						 | 
					@ -1938,19 +1938,6 @@ class ConnectionManager:
 | 
				
			||||||
        self._is_profile_being_enabled = {}
 | 
					        self._is_profile_being_enabled = {}
 | 
				
			||||||
        self.profile_button_objects = {}
 | 
					        self.profile_button_objects = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self._timezone_mapping = {
 | 
					 | 
				
			||||||
            'md': 'Europe/Chisinau',
 | 
					 | 
				
			||||||
            'nl': 'Europe/Amsterdam',
 | 
					 | 
				
			||||||
            'us': 'America/New_York', 
 | 
					 | 
				
			||||||
            'ca': 'America/Los_Angeles',
 | 
					 | 
				
			||||||
            'fi': 'Europe/Helsinki',
 | 
					 | 
				
			||||||
            'is': 'Atlantic/Reykjavik',
 | 
					 | 
				
			||||||
            'my': 'Asia/Kuala_Lumpur', 
 | 
					 | 
				
			||||||
            'la': 'America/Los_Angeles',
 | 
					 | 
				
			||||||
            'ru': 'Europe/Moscow',
 | 
					 | 
				
			||||||
            'ro': 'Europe/Bucharest',
 | 
					 | 
				
			||||||
            'ch': 'Europe/Zurich'
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        self._location_list = []
 | 
					        self._location_list = []
 | 
				
			||||||
        self._browser_list = []
 | 
					        self._browser_list = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1960,10 +1947,7 @@ class ConnectionManager:
 | 
				
			||||||
    def set_profile_button_objects(self, profile_id, profile_button_objects):
 | 
					    def set_profile_button_objects(self, profile_id, profile_button_objects):
 | 
				
			||||||
        self.profile_button_objects[profile_id] = profile_button_objects
 | 
					        self.profile_button_objects[profile_id] = profile_button_objects
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    def get_timezone(self, location_code):
 | 
					
 | 
				
			||||||
        if location_code in self._timezone_mapping:
 | 
					 | 
				
			||||||
            return self._timezone_mapping[location_code]
 | 
					 | 
				
			||||||
        return None
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def add_connected_profile(self, profile_id):
 | 
					    def add_connected_profile(self, profile_id):
 | 
				
			||||||
        self._connected_profiles.add(profile_id)
 | 
					        self._connected_profiles.add(profile_id)
 | 
				
			||||||
| 
						 | 
					@ -4110,7 +4094,7 @@ class EditorPage(Page):
 | 
				
			||||||
            if location:
 | 
					            if location:
 | 
				
			||||||
                profile.location.code = location.code
 | 
					                profile.location.code = location.code
 | 
				
			||||||
                profile.location.country_code = location.country_code  
 | 
					                profile.location.country_code = location.country_code  
 | 
				
			||||||
                profile.location.time_zone = self.connection_manager.get_timezone(location.country_code)
 | 
					                profile.location.time_zone = location.time_zone
 | 
				
			||||||
                profile.subscription = None
 | 
					                profile.subscription = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5694,7 +5678,7 @@ class DurationSelectionPage(Page):
 | 
				
			||||||
        self.combo_box = QComboBox(self)
 | 
					        self.combo_box = QComboBox(self)
 | 
				
			||||||
        self.combo_box.setGeometry(200, 200, 400, 60)
 | 
					        self.combo_box.setGeometry(200, 200, 400, 60)
 | 
				
			||||||
        self.combo_box.addItems(["1 month ($1)", "3 months ($3)", "6 months ($5)", "12 months ($10)"])
 | 
					        self.combo_box.addItems(["1 month ($1)", "3 months ($3)", "6 months ($5)", "12 months ($10)"])
 | 
				
			||||||
        self.combo_box.setEditable(True)
 | 
					        self.combo_box.setEditable(False)
 | 
				
			||||||
        self.combo_box.setMaxVisibleItems(4)
 | 
					        self.combo_box.setMaxVisibleItems(4)
 | 
				
			||||||
        self.combo_box.setDuplicatesEnabled(True)
 | 
					        self.combo_box.setDuplicatesEnabled(True)
 | 
				
			||||||
        self.combo_box.setPlaceholderText("Select options")
 | 
					        self.combo_box.setPlaceholderText("Select options")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,7 @@ dependencies = [
 | 
				
			||||||
    "sp-hydra-veil-core == 1.0.0",
 | 
					    "sp-hydra-veil-core == 1.0.0",
 | 
				
			||||||
    "pyperclip ~= 1.9.0",
 | 
					    "pyperclip ~= 1.9.0",
 | 
				
			||||||
    "pyqt6 ~= 6.7.1",
 | 
					    "pyqt6 ~= 6.7.1",
 | 
				
			||||||
 | 
					    "qrcode[pil] ~= 8.2"
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[project.urls]
 | 
					[project.urls]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue