mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-11 01:03:32 +08:00
Add option to disable automatic update check at startup (#1819)
This commit is contained in:
@@ -259,6 +259,9 @@ public partial class App : Application
|
||||
|
||||
private void CheckUpdate()
|
||||
{
|
||||
if (SettingHelper.Get("DisableAutoUpdateCheck", false))
|
||||
return;
|
||||
|
||||
if (DateTime.Now.Ticks - SettingHelper.Get<long>("LastUpdateTicks") < TimeSpan.FromDays(30).Ticks)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user