[api] refactoring: removing screen measures as parameters of SoftwareManager.get_settings

This commit is contained in:
Vinicius Moreira
2022-04-08 17:41:29 -03:00
parent 3553b4faa4
commit 374b7ce03f
12 changed files with 47 additions and 50 deletions

View File

@@ -850,9 +850,9 @@ class AppImageManager(SoftwareManager):
print(f'{Fore.RED}[bauh][appimage] An exception has happened when deleting {f}{Fore.RESET}')
traceback.print_exc()
def get_settings(self, screen_width: int, screen_height: int) -> Optional[ViewComponent]:
def get_settings(self) -> Optional[ViewComponent]:
appimage_config = self.configman.get_config()
max_width = floor(screen_width * 0.15)
max_width = floor(self.context.screen_width * 0.15)
comps = [
TextInputComponent(label=self.i18n['appimage.config.database.expiration'],