From 0400b48e34be1721c939d13479f2c96e9ff9eacc Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 25 Sep 2024 07:02:29 +0200 Subject: [PATCH] Fix bad attribute reference. --- browser.py | 4 ++-- stable/gen_params.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/browser.py b/browser.py index 38a9889..56b46f8 100755 --- a/browser.py +++ b/browser.py @@ -748,7 +748,7 @@ class MainWindow(Gtk.Window): self.app.sort_order.clear() for i in range(self.sort_store.get_n_items()): sorter = self.sort_store.get_item(i) - sorter.list_item.remove_css_class('temp') + sorter.widget.remove_css_class('temp') self.app.sort_order += [sorter] self.btn_activate_sort.props.sensitive = False old_selection = self.gallery.selected_item @@ -872,7 +872,7 @@ class MainWindow(Gtk.Window): self.sort_selection.props.selected = cur_idx + direction for i in range(self.sort_store.get_n_items()): sort_item = self.sort_store.get_item(i) - sort_item.list_item.add_css_class('temp') + sort_item.widget.add_css_class('temp') self.btn_activate_sort.props.sensitive = True def move_selection_in_sort_order(self, direction): diff --git a/stable/gen_params.py b/stable/gen_params.py index a1e72e8..e568c2f 100644 --- a/stable/gen_params.py +++ b/stable/gen_params.py @@ -4,6 +4,9 @@ GEN_PARAMS_FLOAT = ('GUIDANCE',) GEN_PARAMS = GEN_PARAMS_STR + GEN_PARAMS_INT + GEN_PARAMS_FLOAT +# TODO check AUTOMATIC1111 /modules/processing.py for create_infotext + + class GenParams: def __init__(self, **kwargs): -- 2.30.2