Update NewBoxWizard.cpp

fix SharedTemplate
This commit is contained in:
offhub 2024-07-19 19:20:58 +03:00
parent 042862e59c
commit cf2689fa61
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ SB_STATUS CNewBoxWizard::TryToCreateBox()
const QString templateTitle = tr("Shared Template");
const QString boxSettings = theAPI->SbieIniGetEx(BoxName, "");
const QStringList boxSettingsLines = boxSettings.split(QRegularExpression(QStringLiteral("[\r\n]")), Qt::SkipEmptyParts);
const QStringList SPECIAL_SETTINGS = { "BorderColor", "BoxIcon", "BoxNameTitle", "ConfigLevel", "CopyLimitKb" };
const QStringList SPECIAL_SETTINGS = { "BorderColor", "BoxIcon", "ConfigLevel", "CopyLimitKb" };
bool disableWizardSettings = templateSettings.contains(QRegularExpression(QStringLiteral("[\r\n]#DisableWizardSettings=y[\r\n]")));
bool removeDefaultAll = templateSettings.contains(QRegularExpression(QStringLiteral("[\r\n]#RemoveDefaultAll=y[\r\n]")));