Skip to content

Commit

Permalink
Fix Onboarding Help
Browse files Browse the repository at this point in the history
  • Loading branch information
Panda-Sharp committed Jun 2, 2021
1 parent be07df0 commit 2d945c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Yugen.Mosaic.Uwp/Helpers/OnboardingHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Windows.UI.Xaml;
using System;
using Windows.UI.Xaml;
using Yugen.Mosaic.Uwp.Enums;
using Yugen.Mosaic.Uwp.Models;
using Yugen.Toolkit.Uwp.Helpers;
Expand Down Expand Up @@ -46,7 +47,7 @@ public static OnboardingElement ShowTeachingTip()
{
OnboardingElement onboardingElement = null;

if (_step < 0 || IsDisabled)
if (IsDisabled)
{
return onboardingElement;
}
Expand All @@ -63,5 +64,11 @@ public static OnboardingElement ShowTeachingTip()

return onboardingElement;
}

internal static void Reset()
{
IsDisabled = false;
_step = 0;
}
}
}
2 changes: 1 addition & 1 deletion Yugen.Mosaic.Uwp/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ private void ResetCommandBehavior()

private void HelpCommandBehavior()
{
OnboardingHelper.IsDisabled = false;
OnboardingHelper.Reset();
ShowTeachingTip();
}

Expand Down

0 comments on commit 2d945c7

Please sign in to comment.