Skip to content

Commit 26c07e0

Browse files
committed
add extra filters
1 parent 0311680 commit 26c07e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/text_editor/src/text_editor.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ proc main =
1717
di.title = "Text Editor"
1818
di.filters = @[
1919
(name: "Text files", ext: "*.txt"),
20+
(name: "Nim source files", ext: "*.nim;*.nims;*.nimble;*.nimf;nim.cfg;nimdoc.cfg"),
2021
(name: "Any file", ext: "*")
2122
]
2223

@@ -38,7 +39,7 @@ proc main =
3839

3940
exit()
4041

41-
window.show("ui/MainWindow.html")
42+
window.show("ui/MainWindow.html", FireFox)
4243

4344
wait()
4445

0 commit comments

Comments
 (0)