Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99277fa6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Return the correct action for PromptAndWait"

parents 435a5fc0 9ebf0653
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -421,15 +421,15 @@ static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status)
      case Device::REBOOT:
      case Device::SHUTDOWN:
        if (!ui->IsTextVisible()) {
          return Device::REBOOT;
          return chosen_action;
        }
        // okay to reboot; no need to ask.
        if (!update_in_progress) {
          return Device::REBOOT;
          return chosen_action;
        }
        // An update might have been failed. Ask if user really wants to reboot.
        if (AskToReboot(device, chosen_action)) {
          return Device::REBOOT;
          return chosen_action;
        }
        break;