code: use config macro

Macro is much easier to use and more readable
This commit is contained in:
itsmattkc
2022-05-04 09:50:34 -07:00
parent 5f13a83009
commit 91b761693b
38 changed files with 105 additions and 106 deletions
+2 -2
View File
@@ -381,7 +381,7 @@ void MainMenu::ToolsMenuAboutToShow()
void MainMenu::PlaybackMenuAboutToShow()
{
playback_loop_item_->setChecked(Config::Current()["Loop"].toBool());
playback_loop_item_->setChecked(OLIVE_CONFIG("Loop").toBool());
}
void MainMenu::SequenceMenuAboutToShow()
@@ -506,7 +506,7 @@ void MainMenu::PlayInToOutTriggered()
void MainMenu::LoopTriggered(bool enabled)
{
Config::Current()["Loop"] = enabled;
OLIVE_CONFIG("Loop") = enabled;
}
void MainMenu::NextFrameTriggered()