Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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()
Exemplo n.º 4
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
Exemplo n.º 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
Exemplo n.º 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()
Exemplo n.º 7
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
Exemplo n.º 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
Exemplo n.º 9
0
Arquivo: ui.py Projeto: Eksmo/calibre
 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()