1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-01 22:53:50 +01:00

Bug 2249 - Screenshot tool does not remember typed path

This commit is contained in:
Leland Lucius
2020-03-23 07:52:16 -05:00
parent 987aa65c8d
commit 8677332815

View File

@@ -529,11 +529,21 @@ bool ScreenshotBigDialog::ProcessEvent(wxEvent & e)
void ScreenshotBigDialog::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
{
if (mDirectoryTextBox->IsModified()) {
gPrefs->Write(wxT("/ScreenshotPath"), mDirectoryTextBox->GetValue());
gPrefs->Flush();
}
Destroy();
}
void ScreenshotBigDialog::OnClose(wxCommandEvent & WXUNUSED(event))
{
if (mDirectoryTextBox->IsModified()) {
gPrefs->Write(wxT("/ScreenshotPath"), mDirectoryTextBox->GetValue());
gPrefs->Flush();
}
Destroy();
}