mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 07:34:16 +02:00
[api.abstract.controller] refactoring: updating 'get_settings' return specification
This commit is contained in:
@@ -443,7 +443,7 @@ class SnapManager(SoftwareManager):
|
||||
def get_screenshots(self, pkg: SnapApplication) -> List[str]:
|
||||
return pkg.screenshots if pkg.has_screenshots() else []
|
||||
|
||||
def get_settings(self, screen_width: int, screen_height: int) -> ViewComponent:
|
||||
def get_settings(self, screen_width: int, screen_height: int) -> Optional[ViewComponent]:
|
||||
snap_config = self.configman.get_config()
|
||||
max_width = 200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user