示例#1
0
    def apply(self, *arg):
        if not self.changed: return

        result = self.get()

        Config.set_and_save('base/fields', result)

        if self.parent:
            Utils.warning_dialog_s(
                self.parent,
                _("Some changes require to restart Pybliographic\n"
                  "to be correctly taken into account"))
示例#2
0
 def changed (self):
     if not self.warning:
         self.warning = True
         Utils.warning_dialog_s(self.parent, _("Some changes require to restart Pybliographic\n"
                                "to be correctly taken into account"))