From: Christian Heller Date: Wed, 25 Sep 2024 05:02:29 +0000 (+0200) Subject: Fix bad attribute reference. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=0400b48e34be1721c939d13479f2c96e9ff9eacc;p=stable_plom Fix bad attribute reference. --- 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):