From df895d122a8a2ea249e686578e026c1d0a8b8c47 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sun, 2 Jan 2022 23:55:10 +0700 Subject: fix notification not opening file --- src/main/kotlin/cc/woverflow/chattils/Chattils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/cc/woverflow/chattils/Chattils.kt') diff --git a/src/main/kotlin/cc/woverflow/chattils/Chattils.kt b/src/main/kotlin/cc/woverflow/chattils/Chattils.kt index c9714a2..5ae5c6b 100644 --- a/src/main/kotlin/cc/woverflow/chattils/Chattils.kt +++ b/src/main/kotlin/cc/woverflow/chattils/Chattils.kt @@ -150,8 +150,8 @@ object Chattils { Minecraft.getMinecraft().entityRenderer.setupOverlayRendering() Minecraft.getMinecraft().framebuffer.bindFramebuffer(true) EssentialAPI.getNotifications() - .push("Chattils", "Chat screenshotted successfully.\nClick to open.") { - if (!UDesktop.browse(file.toURI())) { + .push("Chattils", "Chat screenshotted successfully." + (if (ChattilsConfig.copyMode != 1) "\nClick to open." else "")) { + if (!UDesktop.open(file)) { EssentialAPI.getNotifications().push("Chattils", "Could not browse!") } } -- cgit