~aleteoryx/muditaos

883293642bc352d47f3f33dc7924a236142efeea — Wojtek Cichon 4 years ago d390784
[EGD-7050] Fixed reboot copy

Fixed the copy that prompts the user to confirm
 the reboot of the phone.
2 files changed, 8 insertions(+), 8 deletions(-)

M image/assets/lang/English.json
M module-apps/application-desktop/windows/Reboot.cpp
M image/assets/lang/English.json => image/assets/lang/English.json +1 -0
@@ 84,6 84,7 @@
  "duration_0hmin_0sec": "%0N:%0S",
  "duration_hour_0min_0sec": "%H:%0M:%0S",
  "brightness_text": "BRIGHTNESS",
  "phone_needs_rebooting": "Your phone needs rebooting. Press any key to confirm and please remove the battery for 10 seconds to perform a full reboot",
  "home_modes_connected": "CONNECTED",
  "home_modes_notdisturb": "DO NOT DISTURB",
  "home_modes_offline": "OFFLINE",

M module-apps/application-desktop/windows/Reboot.cpp => module-apps/application-desktop/windows/Reboot.cpp +7 -8
@@ 1,4 1,4 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Reboot.hpp"


@@ 28,13 28,12 @@ namespace gui
        auto text_y_offset = 270;
        auto text_height   = 300;

        text = new Text(
            this,
            style::window::default_left_margin,
            text_y_offset,
            style::window_width - style::window::default_left_margin * 2,
            text_height,
            "Phone have to reboot, press any key to confirm and remove battery for 10 sec to perform full reboot");
        text = new Text(this,
                        style::window::default_left_margin,
                        text_y_offset,
                        style::window_width - style::window::default_left_margin * 2,
                        text_height,
                        utils::translate("phone_needs_rebooting"));
        text->setFilled(false);
        text->setBorderColor(gui::ColorFullBlack);
        text->setFont(style::header::font::title);