Update the file info dialog box

This commit is contained in:
Veronica Berglyd Olsen
2023-08-30 18:57:48 +02:00
parent f41e71199c
commit 9bf43aa40f
5 changed files with 42 additions and 21 deletions
+9 -3
View File
@@ -367,7 +367,7 @@ class GuiDocEditor(QTextEdit):
the file.
"""
self._nwDocument = SHARED.project.storage.getDocument(tHandle)
self._nwItem = self._nwDocument.getCurrentItem()
self._nwItem = self._nwDocument.nwItem
theDoc = self._nwDocument.readDocument()
if theDoc is None:
@@ -846,8 +846,14 @@ class GuiDocEditor(QTextEdit):
logger.error("No document open")
return False
SHARED.info(
self.tr("The currently open file is saved in:"),
info=self._nwDocument.getFileLocation()
"<br>".join([
self.tr("Document Details"),
""*40,
self.tr("Created: {0}").format(self._nwDocument.createdDate),
self.tr("Updated: {0}").format(self._nwDocument.updatedDate),
]),
details=self.tr("File Location: {0}").format(self._nwDocument.fileLocation),
log=False
)
return