Set ui_folder to adaptive in gPodder instance

This commit is contained in:
Teemu Ikonen 2021-08-12 18:17:58 +03:00
parent 14f3584902
commit 9c9f526dbb
2 changed files with 5 additions and 3 deletions

View File

@ -208,7 +208,9 @@ class gPodderApplication(Gtk.Application):
if not self.window:
# Windows are associated with the application
# when the last one is closed the application shuts down
self.window = gPodder(self, self.bus_name, core.Core(UIConfig, model_class=Model), self.options)
self.window = gPodder(self, self.bus_name,
core.Core(UIConfig, model_class=Model), self.options,
ui_folder=os.path.join(gpodder.ui_folders[0], '..', 'adaptive'))
self.add_window(self.window.main_window)
if gpodder.ui.osx:

View File

@ -74,7 +74,7 @@ N_ = gpodder.ngettext
class gPodder(BuilderWidget, dbus.service.Object):
def __init__(self, app, bus_name, gpodder_core, options):
def __init__(self, app, bus_name, gpodder_core, options, **kwargs):
Handy.init()
self.menu2sort = {
"SORT_PUBLISHED": EpisodeListModel.C_PUBLISHED,
@ -99,7 +99,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
self.extensions_actions = []
self._search_podcasts = None
self._search_episodes = None
BuilderWidget.__init__(self, None, _builder_expose={'app': app})
BuilderWidget.__init__(self, None, _builder_expose={'app': app}, **kwargs)
self.last_episode_date_refresh = None
self.refresh_episode_dates()