mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix(ContextMenu): stop processing events when test is over
This commit is contained in:
parent
6475da469b
commit
c2f5941435
1 changed files with 9 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|||
TestGameObject,
|
||||
TestSubMenu,
|
||||
TestMultiple,
|
||||
Finish,
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
@ -118,7 +119,10 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|||
|
||||
case SubStep.TestMultiple:
|
||||
if (this.multipleTriggerOne && this.multipleTriggerTwo)
|
||||
{
|
||||
this.currentSubStep = SubStep.Finish;
|
||||
return SelfTestStepResult.Pass;
|
||||
}
|
||||
|
||||
ImGui.Text("Select both options on any context menu.");
|
||||
if (ImGui.Button("Skip"))
|
||||
|
|
@ -139,6 +143,8 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|||
|
||||
this.currentSubStep = SubStep.Start;
|
||||
this.clickedItemId = 0;
|
||||
this.clickedPlayerName = null;
|
||||
this.multipleTriggerOne = this.multipleTriggerTwo = false;
|
||||
}
|
||||
|
||||
private void ContextMenuOnContextMenuOpened(ContextMenuOpenedArgs args)
|
||||
|
|
@ -174,6 +180,9 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|||
}));
|
||||
|
||||
return;
|
||||
case SubStep.Finish:
|
||||
return;
|
||||
|
||||
default:
|
||||
switch (args.ParentAddonName)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue