mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed current edits not being saved on exit of the metadata editor.
This commit is contained in:
@@ -621,6 +621,12 @@ void Editor::OnRowSelect(wxListEvent& event) {
|
||||
|
||||
void Editor::OnQuit(wxCommandEvent& event) {
|
||||
if (event.GetId() == BUTTON_Apply) {
|
||||
|
||||
//Apply any current edits.
|
||||
wxString currentPlugin = pluginText->GetLabelText();
|
||||
if (!currentPlugin.empty())
|
||||
ApplyEdits(currentPlugin);
|
||||
|
||||
//Save edits to userlist.
|
||||
YAML::Emitter yout;
|
||||
yout.SetIndent(2);
|
||||
|
||||
Reference in New Issue
Block a user