Route preference reads through adapter

This commit is contained in:
2026-06-12 17:30:27 +02:00
parent 14a3721e0d
commit 59dd010b5a
8 changed files with 74 additions and 20 deletions

View File

@@ -625,7 +625,7 @@ void App::dialog_whatsnew(bool force_show)
whatsnew->load_url(url, [this, whatsnew, force_show](bool success) {
if (success)
{
int last_id = Settings::value_or<Serializer::Integer>("whatsnew-id", 0);
int last_id = pp::panopainter::legacy_integer_preference_or("whatsnew-id", 0);
if (force_show || (whatsnew->m_page_id <= g_version_build && whatsnew->m_page_id > last_id))
{
whatsnew->set_title(fmt::format("What's new in version {}", g_version_number));