Resolve comment about numbered format string in dialog
This commit is contained in:
+5
-8
@@ -466,16 +466,13 @@ class GuiMain(QMainWindow):
|
|||||||
lockDetails = (
|
lockDetails = (
|
||||||
"<br>%s" % self.tr(
|
"<br>%s" % self.tr(
|
||||||
"The project was locked by the computer "
|
"The project was locked by the computer "
|
||||||
"'{computerName}' ({osName} {osVersion}), "
|
"'{0}' ({1} {2}), last active on {3}."
|
||||||
"last active on {activeTime}"
|
|
||||||
)
|
)
|
||||||
).format(
|
).format(
|
||||||
computerName = self.theProject.lockedBy[0],
|
self.theProject.lockedBy[0],
|
||||||
osName = self.theProject.lockedBy[1],
|
self.theProject.lockedBy[1],
|
||||||
osVersion = self.theProject.lockedBy[2],
|
self.theProject.lockedBy[2],
|
||||||
activeTime = datetime.fromtimestamp(
|
datetime.fromtimestamp(int(self.theProject.lockedBy[3])).strftime("%x %X")
|
||||||
int(self.theProject.lockedBy[3])
|
|
||||||
).strftime("%x %X")
|
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
lockDetails = ""
|
lockDetails = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user