settings->options, return bool for syncingEnabled

This commit is contained in:
Damien Elmes 2011-03-29 22:45:17 +09:00
parent 4af961f1d0
commit 0b92423cf7
2 changed files with 2 additions and 2 deletions

View file

@ -681,7 +681,7 @@ update facts set tags = :t, mod = :n where id = :id""", [fix(row) for row in res
self.syncName = u""
def syncingEnabled(self):
return self.syncName
return not not self.syncName
def genSyncName(self):
return unicode(checksum(self.path.encode("utf-8")))

View file

@ -160,7 +160,7 @@ values(1,0,0,0,%(v)s,0,'',0,'', '', '');
# create a default group/configuration, which should not be removed
db.execute(
"insert or ignore into gconf values (1, ?, ?, ?)""",
intTime(), _("Default Settings"),
intTime(), _("Default Options"),
simplejson.dumps(anki.groups.defaultConf))
db.execute(
"insert or ignore into groups values (1, ?, ?, 1, ?)",