Skip to content

Commit 938cbad

Browse files
committed
Switch instance always when the index is default
1 parent 16a72c0 commit 938cbad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsrc/api/JsonAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void JsonAPI::handleInstanceCommand(const JsonApiCommand& cmd, const QJsonObject
333333
// Execute the command for each valid instance
334334
for (const auto &instanceId : std::as_const(instanceIds))
335335
{
336-
if (isRunningInstanceRequired == InstanceCmd::MustRun_Yes)
336+
if (isRunningInstanceRequired == InstanceCmd::MustRun_Yes || _currInstanceIndex == GLOABL_INSTANCE_ID)
337337
{
338338
if (handleInstanceSwitch(instanceId))
339339
{

0 commit comments

Comments
 (0)