mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-30 11:17:25 -04:00
This reverts commit f11bc1f0d0.
Co-authored-by: Hubert Chrzaniuk <hubert.chrzaniuk@mudita.com>
This commit is contained in:
@@ -7,9 +7,6 @@
|
||||
#include "NotesModel.hpp"
|
||||
#include "ListView.hpp"
|
||||
|
||||
#include <module-utils/Utils.hpp>
|
||||
#include <module-services/service-db/agents/settings/SystemSettings.hpp>
|
||||
|
||||
NotesModel::NotesModel(app::Application *app) : DatabaseModel(app)
|
||||
{}
|
||||
|
||||
@@ -50,7 +47,12 @@ gui::ListItem *NotesModel::getItem(gui::Order order)
|
||||
{
|
||||
std::shared_ptr<NotesRecord> note = getRecord(order);
|
||||
|
||||
auto *item = new gui::NotesItem(this, !(application->isTimeFormat12()));
|
||||
SettingsRecord &settings = application->getSettings();
|
||||
|
||||
if (note == nullptr)
|
||||
return nullptr;
|
||||
|
||||
gui::NotesItem *item = new gui::NotesItem(this, !settings.timeFormat12);
|
||||
|
||||
item->setNote(note);
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user