From d1075b5bf5c7fd2e4c7e5dc3c82cf7c32a1f36b3 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Thu, 18 Nov 2021 09:58:26 -0500 Subject: [PATCH 1/2] Fix: error when opening non existing file --- src/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 02f905e..f9554f2 100644 --- a/src/utils.py +++ b/src/utils.py @@ -37,7 +37,7 @@ class MessageDialog(Gtk.MessageDialog): else: buttons = Gtk.ButtonsType.OK_CANCEL Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s) - self.set_title(APP_NAME) + self.set_title(constants.APP_NAME) # platform test def isWindows(): @@ -45,7 +45,7 @@ def isWindows(): # convenience function to display debug messages def logDebug(s): - pass #sys.stderr.write(f'{APP_NAME}: {s}\n') + pass #sys.stderr.write(f'{constants.APP_NAME}: {s}\n') # report error messages def logError(s): From 27df3d916e060870bea792c0e135b86e70e19be1 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Thu, 18 Nov 2021 10:01:06 -0500 Subject: [PATCH 2/2] Add entry to CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fe0121..60c38c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### Fixed +- Fixed 'APP_NAME' error when opening non existing file ## [0.7.1] - 2021-11-17