Skip to content

Commit fee5d08

Browse files
committed
Do not return when one element cannot be found
1 parent 175f3fa commit fee5d08

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Main.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,12 @@ public FilesTab(AutomationElement Files)
115115
if (_currentPathGet == null)
116116
{
117117
Context.API.LogError(ClassName, "Failed to find CurrentPathGet");
118-
return;
119118
}
120119

121120
_currentPathSet = _windowContent.FindFirstChild(cf => cf.ByAutomationId("CurrentPathSet"))?.AsTextBox();
122121
if (_currentPathSet == null)
123122
{
124123
Context.API.LogError(ClassName, "Failed to find CurrentPathSet");
125-
return;
126124
}
127125
}
128126

0 commit comments

Comments
 (0)