Skip to content

Commit 46081e4

Browse files
authored
Merge pull request #106 from MightyCreak/fix-appname
Fix 'APP_NAME' error
2 parents 76f09aa + 27df3d9 commit 46081e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Changed
1212

1313
### Fixed
14+
- Fixed 'APP_NAME' error when opening non existing file
1415

1516
## [0.7.1] - 2021-11-17
1617

src/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def __init__(self, parent, type, s):
3737
else:
3838
buttons = Gtk.ButtonsType.OK_CANCEL
3939
Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s)
40-
self.set_title(APP_NAME)
40+
self.set_title(constants.APP_NAME)
4141

4242
# platform test
4343
def isWindows():
4444
return os.name == 'nt'
4545

4646
# convenience function to display debug messages
4747
def logDebug(s):
48-
pass #sys.stderr.write(f'{APP_NAME}: {s}\n')
48+
pass #sys.stderr.write(f'{constants.APP_NAME}: {s}\n')
4949

5050
# report error messages
5151
def logError(s):

0 commit comments

Comments
 (0)