Skip to content

Commit 1aaf98b

Browse files
committed
Updater: Remove InstallationTime
1 parent 3fb344b commit 1aaf98b

File tree

3 files changed

+2
-33
lines changed

3 files changed

+2
-33
lines changed

CommonHelpers/Instance.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,6 @@ public static bool HasFile(String name)
220220
return File.Exists(uninstallExe);
221221
}
222222

223-
public static bool AcceptedTerms
224-
{
225-
get { return HasFile("Uninstall.exe"); }
226-
}
227-
228223
private static System.Timers.Timer? updateTimer;
229224

230225
public static void RunUpdater(string Title, bool user = false, int recheckIntervalHours = 24)

RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
- FanControl: Support `0xB030/0xA` device
1010
- SteamController: `DS4` backpanel and haptic settings are part of Release build
11+
- Updater: Remove `InstallationTime`
1112

1213
## 0.6.18
1314

Updater/Program.cs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -236,34 +236,7 @@ public static string InstallationTime
236236
{
237237
get
238238
{
239-
try
240-
{
241-
using (var registryKey = Registry.CurrentUser.CreateSubKey(@"Software\SteamDeckTools", true))
242-
{
243-
var installationTime = registryKey?.GetValue("InstallationTime") as string;
244-
if (installationTime is null)
245-
{
246-
var previousTime = RegistryUtils.GetDateModified(
247-
RegistryHive.CurrentUser, @"Software\SteamDeckTools");
248-
Log.TraceLine("PreviousTime: {0}", previousTime);
249-
previousTime ??= DateTimeOffset.UtcNow;
250-
251-
registryKey?.SetValue("InstallationTime", previousTime.Value.ToUnixTimeMilliseconds());
252-
installationTime = registryKey?.GetValue("InstallationTime") as string;
253-
}
254-
255-
if (!Instance.AcceptedTerms)
256-
{
257-
return "";
258-
}
259-
260-
return installationTime ?? "";
261-
}
262-
}
263-
catch (Exception e)
264-
{
265-
return "";
266-
}
239+
return "";
267240
}
268241
}
269242

0 commit comments

Comments
 (0)