Skip to content

Commit

Permalink
Merge f8a2090 into 7118e9e
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgill86 committed Mar 1, 2020
2 parents 7118e9e + f8a2090 commit d83f6d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions neurotic/gui/standalone.py
Expand Up @@ -302,7 +302,17 @@ def edit_metadata(self):

try:
open_path_with_default_program(self.metadata_selector.file)

title = 'Reload metadata?'
text = 'The metadata file must be reloaded if you made changes. ' \
'Do you want to reload now?'
button = QT.QMessageBox.question(self, title, text,
defaultButton=QT.QMessageBox.Yes)
if button == QT.QMessageBox.Yes:
self.metadata_selector.load()

except FileNotFoundError as e:

logger.error(f'The metadata file was not found: {e}')
self.statusBar().showMessage('ERROR: The metadata file could not '
'be found', msecs=5000)
Expand Down

0 comments on commit d83f6d5

Please sign in to comment.