mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 09:29:58 +00:00
Show url dialog only if necessary
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user