return; // Disable Update checker if we are in a UWP container.\r
}\r
\r
+ if (Portable.IsPortable() && !Portable.IsUpdateCheckEnabled())\r
+ {\r
+ return; // Disable Update Check for Portable Mode.\r
+ }\r
+\r
// Make sure it's running on the calling thread\r
if (this.userSettingService.GetUserSetting<bool>(UserSettingConstants.UpdateStatus))\r
{\r
return storagePath;
}
+ public static bool IsUpdateCheckEnabled()
+ {
+ if (keyPairs.ContainsKey("update.check"))
+ {
+ string updateCheckEnabled = keyPairs["update.check"];
+ if (!string.IsNullOrEmpty(updateCheckEnabled) && updateCheckEnabled.Trim() == "true")
+ {
+ return true;
+ }
+
+ return false;
+ }
+
+ return true;
+ }
+
/// <summary>
/// The get temp directory.
/// </summary>
# - Rename this file to portable.ini to activate feature.
# - storage.dir => Stores Presets, Settings and Log Files.
# - tmp.dir => temporary files only. (i.e Preview images)
+# - update.check => true | false (enabled / disabled, default disabled for portable)
#
# Set to 'cwd' to use the current applications directory. It will automatically create "storage" and "tmp" folders in this instance.
# Leave blank to use the system "TMP" directory and the "AppData" user profile folder.
#################################
storage.dir = cwd
-tmp.dir = cwd
\ No newline at end of file
+tmp.dir = cwd
+update.check = false
\ No newline at end of file