Commit cf161a5d authored by topjohnwu's avatar topjohnwu

Show url dialog only if necessary

parent e4bcdbd0
...@@ -110,7 +110,7 @@ class SettingsViewModel( ...@@ -110,7 +110,7 @@ class SettingsViewModel(
private fun openUrlIfNecessary(view: View) { private fun openUrlIfNecessary(view: View) {
UpdateChannelUrl.refresh() UpdateChannelUrl.refresh()
if (UpdateChannelUrl.value.isBlank()) { if (UpdateChannelUrl.isEnabled && UpdateChannelUrl.value.isBlank()) {
UpdateChannelUrl.onPressed(view, this@SettingsViewModel) UpdateChannelUrl.onPressed(view, this@SettingsViewModel)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment