Merge pull request #106 from MightyCreak/fix-appname

Fix 'APP_NAME' error
This commit is contained in:
Creak 2021-11-18 12:09:12 -05:00 committed by GitHub
commit 46081e47fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
### Fixed ### Fixed
- Fixed 'APP_NAME' error when opening non existing file
## [0.7.1] - 2021-11-17 ## [0.7.1] - 2021-11-17

View File

@ -37,7 +37,7 @@ class MessageDialog(Gtk.MessageDialog):
else: else:
buttons = Gtk.ButtonsType.OK_CANCEL buttons = Gtk.ButtonsType.OK_CANCEL
Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s) 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 # platform test
def isWindows(): def isWindows():
@ -45,7 +45,7 @@ def isWindows():
# convenience function to display debug messages # convenience function to display debug messages
def logDebug(s): 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 # report error messages
def logError(s): def logError(s):