mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-06-20 19:41:18 -05:00
Enable empty name warning to be hidden
Used for the twitch token selection for which the whole name selection will be hidden if no token is connected.
This commit is contained in:
parent
6cf1073a3c
commit
0449064f5d
|
|
@ -298,8 +298,14 @@ void ItemSettingsDialog::NameChanged(const QString &text)
|
|||
return;
|
||||
}
|
||||
if (text.isEmpty()) {
|
||||
SetNameWarning(
|
||||
obs_module_text("AdvSceneSwitcher.item.emptyName"));
|
||||
if (_showNameEmptyWarning) {
|
||||
SetNameWarning(obs_module_text(
|
||||
"AdvSceneSwitcher.item.emptyName"));
|
||||
return;
|
||||
}
|
||||
_nameHint->setText("");
|
||||
_nameHint->hide();
|
||||
_buttonbox->button(QDialogButtonBox::Ok)->setDisabled(true);
|
||||
return;
|
||||
}
|
||||
if (text == obs_module_text(_selectStr.data()) ||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ protected:
|
|||
std::string_view _addStr;
|
||||
std::string_view _conflictStr;
|
||||
QString _originalName;
|
||||
bool _showNameEmptyWarning = true;
|
||||
};
|
||||
|
||||
typedef bool (*SettingsCallback)(QWidget *, Item &);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user