mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Move OnTimeChanged event from ASF to OS
This commit is contained in:
@@ -32,7 +32,6 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ArchiSteamFarm.JSON;
|
||||
using ArchiSteamFarm.Localization;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace ArchiSteamFarm {
|
||||
internal static class ASF {
|
||||
@@ -243,8 +242,6 @@ namespace ArchiSteamFarm {
|
||||
FileSystemWatcher.Renamed += OnRenamed;
|
||||
|
||||
FileSystemWatcher.EnableRaisingEvents = true;
|
||||
|
||||
SystemEvents.TimeChanged += OnTimeChanged;
|
||||
}
|
||||
|
||||
private static async Task CreateBot(string botName) {
|
||||
@@ -386,8 +383,6 @@ namespace ArchiSteamFarm {
|
||||
CreateBot(newBotName).Forget();
|
||||
}
|
||||
|
||||
private static async void OnTimeChanged(object sender, EventArgs e) => await MobileAuthenticator.OnTimeChanged().ConfigureAwait(false);
|
||||
|
||||
private static async Task RestartOrExit() {
|
||||
if (Program.GlobalConfig.AutoRestart) {
|
||||
ArchiLogger.LogGenericInfo(Strings.Restarting);
|
||||
|
||||
Reference in New Issue
Block a user