Skip to content

Commit 27cd333

Browse files
committed
FileSelectButton: Allow to select only CSS files by default
1 parent 75d57ef commit 27cd333

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ReText/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ def processClick(self):
5353
startDir = (QFileInfo(self.fileName).absolutePath()
5454
if self.fileName else '')
5555
self.fileName = QFileDialog.getOpenFileName(
56-
self, self.tr('Select file to open'), startDir)[0]
56+
self,
57+
self.tr('Select file to open'),
58+
startDir,
59+
self.tr('CSS files (*.css)') + ';;' + self.tr('All files (*)'),
60+
)[0]
5761
self.updateLabelText()
5862

5963
class DirectorySelectButton(FileDialogButton):

0 commit comments

Comments
 (0)