mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Bug 2249 - Screenshot tool does not remember typed path
This commit is contained in:
parent
987aa65c8d
commit
8677332815
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user