Skip to content

Commit 1a07bcc

Browse files
Make command-line arguments -i "Portable" launch the portable instance
1 parent 2043d99 commit 1a07bcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/instancemanager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ std::shared_ptr<Instance> InstanceManager::currentInstance() const
566566
// no instance set
567567
return {};
568568
}
569+
} else if (name.compare("portable", Qt::CaseInsensitive) == 0 &&
570+
portableInstanceExists()) {
571+
// use portable
572+
return std::make_shared<Instance>(portablePath(), true, profile);
569573
}
570574

571575
return std::make_shared<Instance>(instancePath(name), false, profile);

0 commit comments

Comments
 (0)