示例#1
0
文件: view.py 项目: BobPyron/calibre
 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
示例#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
示例#3
0
文件: ui.py 项目: sportsbite/calibre
 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()
示例#4
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
示例#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
示例#6
0
文件: ui.py 项目: KyoYang/calibre
 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()
示例#7
0
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
示例#8
0
文件: view.py 项目: BobPyron/calibre
 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
示例#9
0
文件: ui.py 项目: 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()