MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / OnApply

Method OnApply

src/preferences.cpp:672–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672void Preferences::OnApply(wxCommandEvent &) {
673 for (auto const& change : pending_changes)
674 OPT_SET(change.first)->Set(change.second.get());
675 pending_changes.clear();
676
677 for (auto const& thunk : pending_callbacks)
678 thunk();
679 pending_callbacks.clear();
680
681 applyButton->Enable(false);
682 config::opt->Flush();
683}
684
685void Preferences::OnResetDefault(wxCommandEvent&) {
686 if (wxYES != wxMessageBox(_("Are you sure that you want to restore the defaults? All your settings will be overridden."), _("Restore defaults?"), wxYES_NO))

Callers

nothing calls this directly

Calls 4

SetMethod · 0.45
getMethod · 0.45
clearMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected