Skip to content

Commit

Permalink
Merge pull request #3761 from Steve-Li-1998/master
Browse files Browse the repository at this point in the history
txt format will use default icon, because CMakeLists.txt should use cmake icon
  • Loading branch information
PHPirates authored Nov 21, 2024
2 parents b82fba5 + 9935bf1 commit b12eb24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/nl/hannahsten/texifyidea/TexifyIcons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ object TexifyIcons {
"cls" -> CLASS_FILE
"dtx" -> DOCUMENTED_LATEX_SOURCE
"sty" -> STYLE_FILE
"txt" -> TEXT_FILE
"tikz" -> TIKZ_FILE
"log" -> TEXT_FILE
"pdf" -> PDF_FILE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TeXiFyProjectViewNodeDecorator : ProjectViewNodeDecorator {
// Allow Material design plugins to take over the icons
// For file types registered in plugin.xml this happens automatically
if (PluginManager.getLoadedPlugins().none { it.name.contains("Material") }) {
// Make sure to now override non-LaTeX extensions with the default icon
// Make sure to not override non-LaTeX extensions with the default icon
val icon = TexifyIcons.getIconFromExtension(extension.lowercase(Locale.getDefault()), default = null) ?: return
presentationData.setIcon(icon)
}
Expand Down

0 comments on commit b12eb24

Please sign in to comment.