Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 7, 2024
1 parent 6a018f6 commit 9eef441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/console/console_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def shareOnGist(self, is_public):

URL = "https://api.github.com/gists"

path = self.tab_widget.currentWidget().file_path()
path = self.code_editor_widget.filePath()
filename = os.path.basename(path) if path else None
filename = filename if filename else "pyqgis_snippet.py"

Expand Down

0 comments on commit 9eef441

Please sign in to comment.