mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-04-30 11:02:28 +12:00
One more bug corrected
This commit is contained in:
parent
e35369dc58
commit
e02c5fe6fe
|
@ -49,7 +49,7 @@ characterMap = OrderedDict([
|
|||
])
|
||||
|
||||
# If true, logs infos while saving and loading.
|
||||
LOG = True
|
||||
LOG = False
|
||||
|
||||
def formatMetaData(name, value, tabLength=10):
|
||||
|
||||
|
|
|
@ -231,10 +231,13 @@ def load(string, fromString=False, protocol=None):
|
|||
for i in revisions["rules"]:
|
||||
if i == "null":
|
||||
r[None] = revisions["rules"]["null"]
|
||||
continue
|
||||
|
||||
elif i == None:
|
||||
continue
|
||||
r[int(i)] = revisions["rules"][i]
|
||||
r[None] = revisions["rules"][None]
|
||||
|
||||
else:
|
||||
r[int(i)] = revisions["rules"][i]
|
||||
|
||||
revisions["rules"] = r
|
||||
|
||||
if "frequencyAnalyzer" in allSettings:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"corkSizeFactor": 84,
|
||||
"defaultTextType": "txt",
|
||||
"dict": "en_US",
|
||||
"folderView": "text",
|
||||
"folderView": "cork",
|
||||
"frequencyAnalyzer": {
|
||||
"phraseMax": 5,
|
||||
"phraseMin": 2,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"wordMin": 1
|
||||
},
|
||||
"fullScreenTheme": "gentleblues",
|
||||
"lastTab": 4,
|
||||
"lastTab": 6,
|
||||
"openIndexes": [
|
||||
null
|
||||
],
|
||||
|
@ -38,7 +38,8 @@
|
|||
"2592000": 86400,
|
||||
"3600": 600,
|
||||
"600": 60,
|
||||
"86400": 3600
|
||||
"86400": 3600,
|
||||
"null": 604800
|
||||
},
|
||||
"smartremove": true
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue