def match_changed(self, action): try: for i, ac in enumerate(self.alter_tb.match_menu.actions()): if ac is action: config.set('match_tags_type', self.db.MATCH_TYPE[i]) except: pass
def write_settings(self): with gprefs: # Only write to gprefs once config.set('main_window_geometry', self.saveGeometry()) dynamic.set('sort_history', self.library_view.model().sort_history) self.save_layout_state()
def show_future(self, *args): config.set('new_version_notification', bool(self.cb.isChecked()))
def sort_changed(self, action): for i, ac in enumerate(self.alter_tb.sort_menu.actions()): if ac is action: config.set('sort_tags_by', self.db.CATEGORY_SORTS[i]) self.recount() break
def write_settings(self): config.set("main_window_geometry", self.saveGeometry()) dynamic.set("sort_history", self.library_view.model().sort_history) self.save_layout_state()