Skip to content

Commit

Permalink
Fix other filetypedescriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Dec 10, 2024
1 parent 4bf53c8 commit bf38d5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class BibtexSettingsEditor(private val project: Project) : SettingsEditor<Bibtex
val mainFileField = TextFieldWithBrowseButton().apply {
addBrowseFolderListener(
TextBrowseFolderListener(
FileTypeDescriptor("Choose the Main .tex File", ".tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules)
FileTypeDescriptor("Choose the Main .tex File", "tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules.toSet().toTypedArray())
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class ExternalToolSettingsEditor(private val project: Project) : SettingsEditor<
val mainFileField = TextFieldWithBrowseButton().apply {
addBrowseFolderListener(
TextBrowseFolderListener(
FileTypeDescriptor("Choose Main LaTeX File", ".tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules)
FileTypeDescriptor("Choose Main LaTeX File", "tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules.toSet().toTypedArray())
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class MakeindexSettingsEditor(private val project: Project) : SettingsEditor<Mak
val mainFileField = TextFieldWithBrowseButton().apply {
addBrowseFolderListener(
TextBrowseFolderListener(
FileTypeDescriptor("Choose the Main .tex File", ".tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules)
FileTypeDescriptor("Choose the Main .tex File", "tex")
.withRoots(*ProjectRootManager.getInstance(project).contentRootsFromAllModules.toSet().toTypedArray())
)
)
}
Expand Down

0 comments on commit bf38d5a

Please sign in to comment.