diff options
-rw-r--r-- | desktop/source/app/app.cxx | 8 | ||||
-rw-r--r-- | officecfg/registry/schema/org/openoffice/Office/Update.xcs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 871c28692899..402d78ffafeb 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1240,9 +1240,6 @@ void restartOnMac(bool passArguments) { bool isTimeForUpdateCheck() { sal_uInt64 nLastUpdate = officecfg::Office::Update::Update::LastUpdateTime::get(); - if (nLastUpdate == 0) - return true; - sal_uInt64 nNow = tools::Time::GetSystemTicks(); sal_uInt64 n7DayInMS = 1000 * 60 * 60 * 24 * 7; // 7 days in ms @@ -1497,7 +1494,10 @@ int Desktop::Main() if (isTimeForUpdateCheck()) { sal_uInt64 nNow = tools::Time::GetSystemTicks(); - officecfg::Office::Update::Update::LastUpdateTime::set(nNow); + std::shared_ptr< comphelper::ConfigurationChanges > batch( + comphelper::ConfigurationChanges::create()); + officecfg::Office::Update::Update::LastUpdateTime::set(nNow, batch); + batch->commit(); m_aUpdateThread = std::thread(update_checker); } } diff --git a/officecfg/registry/schema/org/openoffice/Office/Update.xcs b/officecfg/registry/schema/org/openoffice/Office/Update.xcs index 6c25d74a24a9..49021c3f7bfa 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Update.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Update.xcs @@ -29,11 +29,11 @@ </info> <value>Some Value</value> </prop> - <prop oor:name="LastUpdateTime" oor:type="xs:int" oor:nillable="false"> + <prop oor:name="LastUpdateTime" oor:type="xs:long" oor:nillable="false"> <info> <desc>The last time the update check ran</desc> </info> - <value>-1</value> + <value>0</value> </prop> <prop oor:name="URL" oor:type="xs:string" oor:nillable="false"> <info> |