File tree Expand file tree Collapse file tree
src/main/kotlin/dev/dediamondpro/resourcify/gui/projectpage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ the [Discord](https://dediamondpro.dev/discord).
77- Resourcify now contributes to Modrinth's analytics,
88 see [ their article] ( https://modrinth.com/news/article/analytics-overhaul/ ) for more info.
99- Ported to 1.21.11 and 26.1.2 NeoForge
10+ - Fixed issues with trying to open links with special characters.
1011- Updated a lot of dependencies
1112
1213----------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ import gg.essential.universal.ChatColor
4444import gg.essential.universal.UDesktop
4545import java.awt.Color
4646import java.io.File
47- import java.net.URI
4847import java.util.concurrent.CompletableFuture
4948import kotlin.math.min
5049
@@ -201,7 +200,7 @@ class ProjectScreen(
201200 height = 19 .pixels()
202201 }.onMouseClick {
203202 if (it.mouseButton != 0 ) return @onMouseClick
204- UDesktop .browse(URI ( project.getBrowserUrl()))
203+ UDesktop .browse(project.getBrowserUrl().toURI( ))
205204 } childOf navigationBox
206205 TextIcon (
207206 " ${ChatColor .BOLD }${service.getName().localize()} " ,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import dev.dediamondpro.resourcify.gui.data.Colors
2121import dev.dediamondpro.resourcify.services.IMember
2222import dev.dediamondpro.resourcify.util.capitalizeAll
2323import dev.dediamondpro.resourcify.util.ofURLCustom
24+ import dev.dediamondpro.resourcify.util.toURI
2425import dev.dediamondpro.resourcify.util.toURIOrNull
2526import gg.essential.elementa.components.UIContainer
2627import gg.essential.elementa.components.UIImage
@@ -31,7 +32,6 @@ import gg.essential.elementa.dsl.*
3132import gg.essential.elementa.effects.ScissorEffect
3233import gg.essential.universal.ChatColor
3334import gg.essential.universal.UDesktop
34- import java.net.URI
3535
3636class MemberCard (member : IMember ) : UIContainer() {
3737
@@ -41,7 +41,7 @@ class MemberCard(member: IMember) : UIContainer() {
4141 }
4242 onMouseClick {
4343 if (it.mouseButton != 0 ) return @onMouseClick
44- UDesktop .browse(URI ( member.url))
44+ UDesktop .browse(member.url.toURI( ))
4545 }
4646 member.avatarUrl?.toURIOrNull()?.let {
4747 UIImage .ofURLCustom(it).constrain {
You can’t perform that action at this time.
0 commit comments