Skip to content

Commit

Permalink
update open file for dark mode and update filter name TheThirdOne#81
Browse files Browse the repository at this point in the history
…from Shin

This updates the ui when we open a new file to make sure it is in the right mode.

Also corrects "assembler files" to "assembly files" for the name of the filter
  • Loading branch information
privat authored Aug 14, 2024
2 parents 2987374 + 3ded436 commit 41ac4da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rars/venus/EditTabbedPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public FileOpener(Editor theEditor) {
// Note: add sequence is significant - last one added becomes default.
fileFilterList = new ArrayList<>();
fileFilterList.add(fileChooser.getAcceptAllFileFilter());
fileFilterList.add(FilenameFinder.getFileFilter(Globals.fileExtensions, "Assembler Files", true));
fileFilterList.add(FilenameFinder.getFileFilter(Globals.fileExtensions, "Assembly Files", true));
fileFilterCount = 0; // this will trigger fileChooser file filter load in next line
setChoosableFileFilters();
}
Expand All @@ -561,6 +561,7 @@ public FileOpener(Editor theEditor) {
* Launch a file chooser for name of file to open. Return true if file opened, false otherwise
*/
private boolean openFile() {
fileChooser.updateUI();
// The fileChooser's list may be rebuilt from the master ArrayList if a new filter
// has been added by the user.
setChoosableFileFilters();
Expand Down

0 comments on commit 41ac4da

Please sign in to comment.