aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 15:40:34 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 15:40:34 +0200
commitd909692ac051ffa60d77e0c86056ae7cba7f2d14 (patch)
tree735a3fbafc3c0b1b83a7b20b0b52691c55228ba8 /src
parent476199f6d17d2a8e4a986f634f315284a08014e7 (diff)
parent87b6d9b184168b8558a574799cfa34efc04d5f06 (diff)
downloadskyhanni-d909692ac051ffa60d77e0c86056ae7cba7f2d14.tar.gz
skyhanni-d909692ac051ffa60d77e0c86056ae7cba7f2d14.tar.bz2
skyhanni-d909692ac051ffa60d77e0c86056ae7cba7f2d14.zip
Merge remote-tracking branch 'origin/beta' into beta
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
index 050937022..5aa6915bd 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
@@ -19,10 +19,11 @@ object OSUtils {
Desktop.getDesktop().browse(URI(url))
} catch (e: IOException) {
e.printStackTrace()
- LorenzUtils.error("[SkyHanni] Error opening website!")
+ LorenzUtils.error("[SkyHanni] Error opening website: $url!")
}
} else {
- LorenzUtils.warning("[SkyHanni] Web browser is not supported!")
+ copyToClipboard(url)
+ LorenzUtils.warning("[SkyHanni] Web browser is not supported! Copied url to clipboard.")
}
}
@@ -52,4 +53,4 @@ object OSUtils {
if (this.isKeyDown || this.isPressed) return true
return false
}
-} \ No newline at end of file
+}