Skip to content

Commit

Permalink
Suggest file name whensaving. Fix linux extension bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-millot committed Jan 31, 2018
1 parent c4d7acd commit 41e6bea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Client/Source/KiwiApp_Patcher/KiwiApp_PatcherManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ namespace kiwi
{
auto directory = juce::File::getSpecialLocation(juce::File::userHomeDirectory);

juce::FileChooser saveFileChooser("Save file", directory, "*.kiwi");
juce::File suggest_file = directory.getChildFile(juce::String(m_name)).withFileExtension("kiwi");

juce::FileChooser saveFileChooser("Save file", suggest_file, "*.kiwi");

if ((saved = saveFileChooser.browseForFileToSave(true)))
{
Expand Down

0 comments on commit 41e6bea

Please sign in to comment.