Skip to content

Commit

Permalink
Auto-append RCSS extension if not entered in "Save as" dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvvv committed Jun 27, 2021
1 parent 9dddd9a commit 5498a9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Myth/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@ def _cb_actionSaveAs(self):
if not filePath or not fmt:
return

if not filePath.lower().endswith(".rcss"):
filePath += ".rcss"

newpath = self.saveStylesheets(filePath)
self.currentDocument = newpath
self.updateTitle()
Expand Down

0 comments on commit 5498a9b

Please sign in to comment.