Пример #1
0
 def saveSettings(self):
     infos = [item._info for item in self.instances.items()]
     if infos:
         for info in infos:
             if info.command == self._defaultCommand:
                 break
         else:
             self._defaultCommand = infos[0].command
     else:
         infos = [lilypondinfo.default()]
         self._defaultCommand = infos[0].command
     s = settings()
     s.setValue("default", self._defaultCommand)
     s.setValue("autoversion", self.auto.isChecked())
     lilypondinfo.setinfos(infos)
     lilypondinfo.saveinfos()
Пример #2
0
 def saveSettings(self):
     infos = [item._info for item in self.instances.items()]
     if infos:
         for info in infos:
             if info.command == self._defaultCommand:
                 break
         else:
             self._defaultCommand = infos[0].command
     else:
         infos = [lilypondinfo.default()]
         self._defaultCommand = infos[0].command
     s = settings()
     s.setValue("default", self._defaultCommand)
     s.setValue("autoversion", self.auto.isChecked())
     lilypondinfo.setinfos(infos)
     lilypondinfo.saveinfos()