From 16796741dc0c5d35b50214e22f7cf1d0755ae8c6 Mon Sep 17 00:00:00 2001 From: Doriel Rivalet <100863878+DorielRivalet@users.noreply.github.com> Date: Sat, 3 Jun 2023 02:13:34 -0300 Subject: [PATCH] refactor: timer ticks --- MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs | 1 + MHFZ_Overlay/MainWindow.xaml.cs | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs b/MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs index e646176a..1d13f5a5 100644 --- a/MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs +++ b/MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs @@ -10,6 +10,7 @@ using System.Windows.Markup; using System.Windows.Media; +//TODO: move to UI namespace MHFZ_Overlay.UI.Class { diff --git a/MHFZ_Overlay/MainWindow.xaml.cs b/MHFZ_Overlay/MainWindow.xaml.cs index 8b7976c1..69e9e081 100644 --- a/MHFZ_Overlay/MainWindow.xaml.cs +++ b/MHFZ_Overlay/MainWindow.xaml.cs @@ -523,6 +523,8 @@ private void Timer1Second_Tick(object? obj, EventArgs e) { try { + HideMonsterInfoWhenNotInQuest(); + HidePlayerInfoWhenNotInQuest(); discordManager.UpdateDiscordRPC(DataLoader); CheckIfLocationChanged(); CheckIfQuestChanged(); @@ -537,8 +539,6 @@ private void Timer10Seconds_Tick(object? obj, EventArgs e) { try { - HideMonsterInfoWhenNotInQuest(); - HidePlayerInfoWhenNotInQuest(); DataLoader.CheckForExternalProcesses(); DataLoader.CheckForIllegalModifications(); } @@ -1352,8 +1352,6 @@ private void OpenConfigButton_Key() try { - HideMonsterInfoWhenNotInQuest(); - HidePlayerInfoWhenNotInQuest(); DataLoader.CheckForExternalProcesses(); DataLoader.CheckForIllegalModifications(); }