Skip to content

Commit

Permalink
leave blank if proxy is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jul 31, 2024
1 parent eef1ffa commit 3b4bfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/cubewhy/celestial/Celestial.kt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private fun run() {
if (input == null) {
exitProcess(1)
} else {
val proxyInput = JOptionPane.showInputDialog(f.getString("api.unreachable.proxy"), config.proxy.proxyAddress)
val proxyInput = JOptionPane.showInputDialog(f.getString("api.unreachable.proxy"), if (config.proxy.state) config.proxy.proxyAddress else "")
if (proxyInput.isNullOrBlank()) {
config.proxy.state = false
} else {
Expand Down

0 comments on commit 3b4bfe3

Please sign in to comment.