mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Fix autobug, don't show update button if we can't find the filename
This commit is contained in:
parent
36949b83e5
commit
0006858469
3 changed files with 4 additions and 1 deletions
|
|
@ -1461,6 +1461,8 @@ class MeshService : Service(), Logging {
|
|||
errormsg("Unable to update", ex)
|
||||
null
|
||||
}
|
||||
|
||||
debug("setFirmwareUpdateFilename $firmwareUpdateFilename")
|
||||
}
|
||||
|
||||
private fun doFirmwareUpdate() {
|
||||
|
|
|
|||
|
|
@ -504,7 +504,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
|
||||
// If actively connected possibly let the user update firmware
|
||||
val info = model.myNodeInfo.value
|
||||
if (connected == MeshService.ConnectionState.CONNECTED && info != null && info.shouldUpdate) {
|
||||
if (connected == MeshService.ConnectionState.CONNECTED && info != null && info.shouldUpdate && info.couldUpdate) {
|
||||
updateFirmwareButton.visibility = View.VISIBLE
|
||||
updateFirmwareButton.text =
|
||||
getString(R.string.update_to).format(getString(R.string.cur_firmware_version))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue