From aa1a3928d3dbfbc0c0f6e8326bd330ea85c53cd2 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 24 Jul 2024 22:21:14 +0200 Subject: [PATCH] Remove newlines, or just write a first chapter book MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Why empty first line? It is like opening book that starts with 2nd chapter 🙂 Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- client/ayon_core/tools/loader/ui/product_types_widget.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/ayon_core/tools/loader/ui/product_types_widget.py b/client/ayon_core/tools/loader/ui/product_types_widget.py index ff62ec0bd5..0303f97d09 100644 --- a/client/ayon_core/tools/loader/ui/product_types_widget.py +++ b/client/ayon_core/tools/loader/ui/product_types_widget.py @@ -72,7 +72,6 @@ class ProductTypesQtModel(QtGui.QStandardItemModel): self.refreshed.emit() def reset_product_types_filter(self): - project_name = self._controller.get_selected_project_name() product_types_filter = ( self._controller.get_product_types_filter(project_name) @@ -183,7 +182,6 @@ class ProductTypesView(QtWidgets.QListView): super().showEvent(event) def _on_refresh_finished(self): - # Apply product types filter on first show if self._refresh_product_types_filter: self._product_types_model.reset_product_types_filter()