Skip to content

Commit

Permalink
FileSelectButton: Allow to select only CSS files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Aug 25, 2024
1 parent 75d57ef commit 27cd333
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ReText/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def processClick(self):
startDir = (QFileInfo(self.fileName).absolutePath()
if self.fileName else '')
self.fileName = QFileDialog.getOpenFileName(
self, self.tr('Select file to open'), startDir)[0]
self,
self.tr('Select file to open'),
startDir,
self.tr('CSS files (*.css)') + ';;' + self.tr('All files (*)'),
)[0]
self.updateLabelText()

class DirectorySelectButton(FileDialogButton):
Expand Down

0 comments on commit 27cd333

Please sign in to comment.