chore: add helper function for copying managed pack data between insts.
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
c6bcb6228b
commit
ec9ddc4f22
2 changed files with 11 additions and 0 deletions
|
@ -154,6 +154,16 @@ void BaseInstance::setManagedPack(const QString& type, const QString& id, const
|
|||
settings()->set("ManagedPackVersionName", version);
|
||||
}
|
||||
|
||||
void BaseInstance::copyManagedPack(BaseInstance& other)
|
||||
{
|
||||
settings()->set("ManagedPack", other.isManagedPack());
|
||||
settings()->set("ManagedPackType", other.getManagedPackType());
|
||||
settings()->set("ManagedPackID", other.getManagedPackID());
|
||||
settings()->set("ManagedPackName", other.getManagedPackName());
|
||||
settings()->set("ManagedPackVersionID", other.getManagedPackVersionID());
|
||||
settings()->set("ManagedPackVersionName", other.getManagedPackVersionName());
|
||||
}
|
||||
|
||||
int BaseInstance::getConsoleMaxLines() const
|
||||
{
|
||||
auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue