- Supporting flatpak 1.X, 1.2X and 1.4.X
- Tray icon
- System notifications when new updates are available
- Applications management window
This commit is contained in:
Vinícius Moreira
2019-06-14 16:50:29 -03:00
committed by GitHub
parent fe8ac9e3a7
commit 8a95d508c8
33 changed files with 2007 additions and 668 deletions

22
fpakman/core/controller.py Executable file
View File

@@ -0,0 +1,22 @@
from typing import List
from fpakman.core.model import FlatpakManager
class FlatpakController:
def __init__(self, model: FlatpakManager):
self.model = model
def refresh(self) -> List[dict]:
return self.model.read_installed()
def update(self, package_refs: List[str]) -> List[dict]:
return self.model.update_apps(package_refs)
def check_installed(self) -> bool:
version = self.model.get_version()
return False if version is None else version
def get_version(self) -> str:
return self.model.get_version()