Added a menu option to show storage details about the currently open file

This commit is contained in:
Veronica K. B. Olsen
2019-11-02 22:14:57 +01:00
parent 4caa17f5ae
commit dfb790e73d
6 changed files with 33 additions and 8 deletions
+10
View File
@@ -168,6 +168,10 @@ class GuiMainMenu(QMenuBar):
self.updateRecentProjects()
return True
def _showDocumentLocation(self):
self.theParent.docEditor.revealLocation()
return True
##
# Menu Builders
##
@@ -347,6 +351,12 @@ class GuiMainMenu(QMenuBar):
# Document > Separator
self.docuMenu.addSeparator()
# Document > Show File Details
menuItem = QAction("Show File Details", self)
menuItem.setStatusTip("Shows a message box with the document location in the project folder")
menuItem.triggered.connect(self._showDocumentLocation)
self.docuMenu.addAction(menuItem)
# Document > Import From File
menuItem = QAction("Import from File", self)
menuItem.setStatusTip("Import document from a text or markdown file")