Skip to content

Commit

Permalink
savepanel: allow saving to a path even if a file doesn't exist there yet
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperpenelope committed Jun 10, 2023
1 parent 14269b9 commit e08bfe7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/PluginEditorInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,11 @@ bool CamomileEditorMessageManager::processMessages()
{
return;
}
auto const file = fileChooser.getResult();
if(!file.existsAsFile())
{
return;
}
if(suspend)
{
m_processor.suspendProcessing(true);
}
auto const file = fileChooser.getResult();
auto const path = file.getFullPathName().replaceCharacter('\\', '/').toStdString();
m_processor.enqueueMessages(string_savepanel, string_symbol, {path});
if(suspend)
Expand Down

0 comments on commit e08bfe7

Please sign in to comment.