~aleteoryx/muditaos

de5a92fa652c69291c5739ea939a5a7dd0661d4f — rrandomsky 2 years ago 88c7f8d
[MOS-948] Fix for tethering popup was losing app context

Fixed data loss when creating or editing a note/contact after connecting
the USB cable and selecting the option to enable tetering in the popup window
that appears. Now when tethering is enabled via the popup, the user will
return to Application without data loss.
M module-apps/apps-common/popups/TetheringConfirmationPopup.cpp => module-apps/apps-common/popups/TetheringConfirmationPopup.cpp +2 -2
@@ 1,4 1,4 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "TetheringConfirmationPopup.hpp"


@@ 23,7 23,7 @@ namespace gui
        metadata.action = [this]() {
            application->bus.sendUnicast(std::make_shared<sys::TetheringEnabledResponse>(),
                                         service::name::system_manager);
            app::manager::Controller::sendAction(application, app::manager::actions::Home);
            application->returnToPreviousWindow();
            return true;
        };
        auto msg = std::make_unique<DialogMetadataMessage>(std::move(metadata));

M module-apps/apps-common/popups/TetheringOffPopup.cpp => module-apps/apps-common/popups/TetheringOffPopup.cpp +1 -1
@@ 34,7 34,7 @@ namespace gui
        metadata.action = [this]() {
            application->bus.sendUnicast(std::make_shared<sys::TetheringStateRequest>(sys::phone_modes::Tethering::Off),
                                         service::name::system_manager);
            app::manager::Controller::sendAction(application, app::manager::actions::Home);
            application->returnToPreviousWindow();
            return true;
        };
        metadata.title = utils::translate("tethering");

M pure_changelog.md => pure_changelog.md +1 -0
@@ 27,6 27,7 @@
* Fixed ability to create contact with 2 same numbers
* Fixed diacritics in translations
* Fixed issues with file uploads with low disk space.
* Fixed data losing because switching tethering via tethering popup

## [1.7.2 2023-07-28]