mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +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,
|
TestGameObject,
|
||||||
TestSubMenu,
|
TestSubMenu,
|
||||||
TestMultiple,
|
TestMultiple,
|
||||||
|
Finish,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
|
|
@ -118,7 +119,10 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
|
|
||||||
case SubStep.TestMultiple:
|
case SubStep.TestMultiple:
|
||||||
if (this.multipleTriggerOne && this.multipleTriggerTwo)
|
if (this.multipleTriggerOne && this.multipleTriggerTwo)
|
||||||
|
{
|
||||||
|
this.currentSubStep = SubStep.Finish;
|
||||||
return SelfTestStepResult.Pass;
|
return SelfTestStepResult.Pass;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.Text("Select both options on any context menu.");
|
ImGui.Text("Select both options on any context menu.");
|
||||||
if (ImGui.Button("Skip"))
|
if (ImGui.Button("Skip"))
|
||||||
|
|
@ -139,6 +143,8 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
|
|
||||||
this.currentSubStep = SubStep.Start;
|
this.currentSubStep = SubStep.Start;
|
||||||
this.clickedItemId = 0;
|
this.clickedItemId = 0;
|
||||||
|
this.clickedPlayerName = null;
|
||||||
|
this.multipleTriggerOne = this.multipleTriggerTwo = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ContextMenuOnContextMenuOpened(ContextMenuOpenedArgs args)
|
private void ContextMenuOnContextMenuOpened(ContextMenuOpenedArgs args)
|
||||||
|
|
@ -174,6 +180,9 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
case SubStep.Finish:
|
||||||
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
switch (args.ParentAddonName)
|
switch (args.ParentAddonName)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue