mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Update lastVariableChange when using settings dialog to change value
This commit is contained in:
parent
234ae27205
commit
673ac8078b
|
|
@ -267,6 +267,7 @@ bool VariableSettingsDialog::AskForSettings(QWidget *parent, Variable &settings)
|
|||
dialog._defaultValue->toPlainText().toStdString();
|
||||
settings._saveAction =
|
||||
static_cast<Variable::SaveAction>(dialog._save->currentIndex());
|
||||
lastVariableChange = std::chrono::high_resolution_clock::now();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -274,7 +275,6 @@ static bool AskForSettingsWrapper(QWidget *parent, Item &settings)
|
|||
{
|
||||
Variable &VariableSettings = dynamic_cast<Variable &>(settings);
|
||||
if (VariableSettingsDialog::AskForSettings(parent, VariableSettings)) {
|
||||
lastVariableChange = std::chrono::high_resolution_clock::now();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user