From 7aa649e6d13f4aad84fce1ba9410a28522461664 Mon Sep 17 00:00:00 2001 From: auouymous Date: Thu, 8 Dec 2022 15:57:46 -0700 Subject: [PATCH] episode_list_columns -> ui.gtk.episode_list.columns --- src/gpodder/config.py | 1 - src/gpodder/gtkui/main.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gpodder/config.py b/src/gpodder/config.py index 4b185e1a..d5f065b0 100644 --- a/src/gpodder/config.py +++ b/src/gpodder/config.py @@ -228,7 +228,6 @@ defaults = { # The sooner this goes away, the better gPodderSettings_LegacySupport = { - 'episode_list_columns': 'ui.gtk.episode_list.columns', } logger = logging.getLogger(__name__) diff --git a/src/gpodder/gtkui/main.py b/src/gpodder/gtkui/main.py index 681a2482..840b9248 100644 --- a/src/gpodder/gtkui/main.py +++ b/src/gpodder/gtkui/main.py @@ -803,14 +803,14 @@ class gPodder(BuilderWidget, dbus.service.Object): def set_episode_list_column(self, index, new_value): mask = (1 << index) if new_value: - self.config.episode_list_columns |= mask + self.config.ui.gtk.episode_list.columns |= mask else: - self.config.episode_list_columns &= ~mask + self.config.ui.gtk.episode_list.columns &= ~mask def update_episode_list_columns_visibility(self): columns = TreeViewHelper.get_columns(self.treeAvailable) for index, column in enumerate(columns): - visible = bool(self.config.episode_list_columns & (1 << index)) + visible = bool(self.config.ui.gtk.episode_list.columns & (1 << index)) column.set_visible(visible) self.view_column_actions[index].set_state(GLib.Variant.new_boolean(visible)) self.treeAvailable.columns_autosize() -- 2.11.4.GIT