Skip to content

Commit

Permalink
fix: yafti.screen.package title doesn't show up (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reidond authored Apr 17, 2023
1 parent 457ffe8 commit 8641b56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ screens:
applications:
source: yafti.screen.package
values:
title: Package Installation
title: Install flatpaks
show_terminal: true
package_manager: yafti.plugin.flatpak
groups:
Expand Down
2 changes: 2 additions & 0 deletions yafti/screen/package/screen/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
class PackageInstallScreen(YaftiScreen, Gtk.Box):
__gtype_name__ = "YaftiPackageInstallScreen"

status_page = Gtk.Template.Child()
pkg_progress = Gtk.Template.Child()
btn_console = Gtk.Template.Child()
started = False
Expand All @@ -84,6 +85,7 @@ def __init__(
super().__init__(**kwargs)
from yafti.registry import PLUGINS

self.status_page.set_title(title)
self.package_manager = PLUGINS.get(package_manager)
self.package_manager_defaults = package_manager_defaults or {}
self.btn_console.connect("clicked", self.toggle_console)
Expand Down
1 change: 1 addition & 0 deletions yafti/screen/package/screen/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class PackageScreen(YaftiScreen, Adw.Bin):
pkg_carousel = Gtk.Template.Child()

class Config(YaftiScreenConfig):
title: str
show_terminal: bool = True
package_manager: str
groups: Optional[PackageGroupConfig] = None
Expand Down

0 comments on commit 8641b56

Please sign in to comment.