mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-09-25 05:04:20 +00:00
* refactor: render chat rows from presentation state * Fix Meshtastic channel sync and add MeshCore CN preset * Add granular chat notification settings * Add SD settings backup and restore * Prepare 0.1.26-alpha release --------- Co-authored-by: vicliu624 <vicliu@outlook.com>
22 lines
383 B
C++
22 lines
383 B
C++
#include "ui_presentation/mesh/mesh_status_model.h"
|
|
|
|
namespace ui::mesh
|
|
{
|
|
|
|
MeshStatusModel::MeshStatusModel(IMeshStatusSource& source)
|
|
: source_(source)
|
|
{
|
|
}
|
|
|
|
MeshStatusSnapshot MeshStatusModel::snapshot() const
|
|
{
|
|
MeshStatusSnapshot out{};
|
|
if (!source_.buildMeshStatusSnapshot(out))
|
|
{
|
|
out.header.valid = false;
|
|
}
|
|
return out;
|
|
}
|
|
|
|
} // namespace ui::mesh
|