Skip to content

Commit

Permalink
Log import, export, open filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
kk7ds committed Oct 30, 2024
1 parent 78bef93 commit 1525ee3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def export_to_file(self, filename):
current = self.current_editor
if not isinstance(current, memedit.ChirpMemEdit):
raise Exception(_('Only memory tabs may be exported'))
LOG.debug('Exporting to %r' % filename)
current.export_to_file(filename)

def update_font(self):
Expand Down Expand Up @@ -562,6 +563,7 @@ def open_file(self, filename, exists=True, select=True, rclass=None):
with common.expose_logs(logging.WARNING, 'chirp.drivers', label,
parent=self):
if exists:
LOG.debug('Doing open from %r' % filename)
if not os.path.exists(filename):
raise FileNotFoundError(
_('File does not exist: %s') % filename)
Expand Down Expand Up @@ -1366,6 +1368,7 @@ def _menu_import(self, event):
if r == wx.ID_YES:
with common.expose_logs(logging.WARNING, 'chirp.drivers',
_('Import messages'), parent=self):
LOG.debug('Doing import from %r' % filename)
radio = directory.get_radio_by_image(filename)
self.current_editorset.current_editor.memedit_import_all(radio)
elif r == wx.ID_NO:
Expand Down

0 comments on commit 1525ee3

Please sign in to comment.