def on_save_settings(self, opts):
with settings_con:
cur = settings_con.cursor()
for i in opts:
if type(i) == Gtk.Entry: value = i.get_text()
if type(i) == Gtk.ComboBoxText: value = i.get_active()
cur.execute("UPDATE settings SET value=? WHERE option=?;",(value, i.get_name(),))
decision = dialog().decision(_("Are you sure?"), "<span size='small'>{}.</span>"\
.format(_("Clicking on OK, all edited settings will be saved and browser will restart")))
if decision: self.restart()
评论列表
文章目录