Rev1522, Fix file write confirmation dialog

This commit is contained in:
shortcutme 2016-09-14 18:28:48 +02:00
parent e7762e03b4
commit 60dd797d1a
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class Config(object):
def __init__(self, argv): def __init__(self, argv):
self.version = "0.4.1" self.version = "0.4.1"
self.rev = 1521 self.rev = 1522
self.argv = argv self.argv = argv
self.action = None self.action = None
self.config_file = "zeronet.conf" self.config_file = "zeronet.conf"

View file

@ -398,7 +398,7 @@ class UiWebsocket(object):
found = self.site.needFile(inner_path, update=True, priority=10) found = self.site.needFile(inner_path, update=True, priority=10)
if not found: if not found:
self.cmd( self.cmd(
"confirm" "confirm",
["This file still in sync, if you write it now, then the previous content may be lost.", "Write content anyway"], ["This file still in sync, if you write it now, then the previous content may be lost.", "Write content anyway"],
lambda (res): self.actionFileWrite(self, to, inner_path, content_base64, ignore_bad_files=True) lambda (res): self.actionFileWrite(self, to, inner_path, content_base64, ignore_bad_files=True)
) )