Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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()
Exemple #4
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
Exemple #5
0
 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
Exemple #6
0
 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()
Exemple #7
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
Exemple #8
0
 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
Exemple #9
0
 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()