Files
MuditaOS/module-apps/application-notes/data/NoteSwitchData.cpp
Piotr Tański 50a73ca638 [EGD-7051] Fixed saving multiple notes at once
When creating a new note, it was possible to save multiple notes
with 1 click.
2021-07-01 16:00:56 +02:00

17 lines
482 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "NoteSwitchData.hpp"
namespace app::notes
{
NoteSwitchData::NoteSwitchData(std::shared_ptr<NotesRecord> record)
: gui::SwitchData(std::string{"NotePreview"}), record{std::move(record)}
{}
std::shared_ptr<NotesRecord> NoteSwitchData::getRecord() noexcept
{
return record;
}
} // namespace app::notes