MCPcopy Create free account
hub / github.com/comaps/comaps / LoadState

Method LoadState

libs/map/bookmark_manager.cpp:1902–1916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1900}
1901
1902void BookmarkManager::LoadState()
1903{
1904 settings::TryGet(kLastEditedBookmarkCategory, m_lastCategoryUrl);
1905
1906 uint32_t color;
1907 if (settings::Get(kLastEditedBookmarkColor, color) && color > static_cast<uint32_t>(kml::PredefinedColor::None) &&
1908 color < static_cast<uint32_t>(kml::PredefinedColor::Count))
1909 {
1910 m_lastColor = static_cast<kml::PredefinedColor>(color);
1911 }
1912 else
1913 {
1914 m_lastColor = BookmarkCategory::GetDefaultColor();
1915 }
1916}
1917
1918std::string BookmarkManager::GetMetadataEntryName(kml::MarkGroupId groupId) const
1919{

Callers

nothing calls this directly

Calls 2

TryGetFunction · 0.85
GetFunction · 0.85

Tested by

no test coverage detected