11import sys
22import time
33
4- from ..models import AssetModel
5- from ..widgets import AssetWidget
6- from ..lib import preserve_selection
7-
84from ...vendor .Qt import QtWidgets , QtCore
95from ... import api , io , style
6+
7+ from ..models import AssetModel
8+ from ..widgets import AssetWidget
109from .. import lib
1110
12- from ..lib import (
13- refresh_family_config_cache ,
14- refresh_group_config_cache ,
15- get_active_group_config
16- )
1711from .widgets import SubsetWidget , VersionWidget , FamilyListWidget
1812
1913module = sys .modules [__name__ ]
@@ -356,8 +350,8 @@ def _build_menu(self):
356350 if group :
357351 group .deleteLater ()
358352
359- active_groups = get_active_group_config (self .asset_id ,
360- include_predefined = True )
353+ active_groups = lib . get_active_group_config (self .asset_id ,
354+ include_predefined = True )
361355 # Build new action group
362356 group = QtWidgets .QActionGroup (button )
363357 for data in sorted (active_groups , key = lambda x : x ["order" ]):
@@ -378,8 +372,8 @@ def on_group(self):
378372 name = self .name .text ().strip ()
379373 self .subsets .group_subsets (name , self .asset_id , self .items )
380374
381- with preserve_selection (tree_view = self .subsets .view ,
382- current_index = False ):
375+ with lib . preserve_selection (tree_view = self .subsets .view ,
376+ current_index = False ):
383377 self .grouped .emit ()
384378 self .close ()
385379
@@ -433,8 +427,8 @@ def show(debug=False, parent=None, use_context=False):
433427 with lib .application ():
434428
435429 # TODO: Global state, remove these
436- refresh_family_config_cache ()
437- refresh_group_config_cache ()
430+ lib . refresh_family_config_cache ()
431+ lib . refresh_group_config_cache ()
438432
439433 window = Window (parent )
440434 window .setStyleSheet (style .load_stylesheet ())
0 commit comments