Skip to content

Commit

Permalink
refactor: timer ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Jun 3, 2023
1 parent e1bfc91 commit 1679674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions MHFZ_Overlay/Core/Class/OutlinedTextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Windows.Markup;
using System.Windows.Media;

//TODO: move to UI
namespace MHFZ_Overlay.UI.Class
{

Expand Down
6 changes: 2 additions & 4 deletions MHFZ_Overlay/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ private void Timer1Second_Tick(object? obj, EventArgs e)
{
try
{
HideMonsterInfoWhenNotInQuest();
HidePlayerInfoWhenNotInQuest();
discordManager.UpdateDiscordRPC(DataLoader);
CheckIfLocationChanged();
CheckIfQuestChanged();
Expand All @@ -537,8 +539,6 @@ private void Timer10Seconds_Tick(object? obj, EventArgs e)
{
try
{
HideMonsterInfoWhenNotInQuest();
HidePlayerInfoWhenNotInQuest();
DataLoader.CheckForExternalProcesses();
DataLoader.CheckForIllegalModifications();
}
Expand Down Expand Up @@ -1352,8 +1352,6 @@ private void OpenConfigButton_Key()

try
{
HideMonsterInfoWhenNotInQuest();
HidePlayerInfoWhenNotInQuest();
DataLoader.CheckForExternalProcesses();
DataLoader.CheckForIllegalModifications();
}
Expand Down

0 comments on commit 1679674

Please sign in to comment.