Skip to content

Commit

Permalink
#58 Удобство сохранения истории в Редакторе
Browse files Browse the repository at this point in the history
    ^   [Редактор] При сохранении загруженной ранее (не созданной с нуля) истории диалог выбора файла предлагает тот же файл истории.
  • Loading branch information
realsonic committed Sep 5, 2022
1 parent bf80adc commit 66c7604
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
19.05.2022
^ [Платформа] Для разработческих сборок номер версии теперь содержит дату сборки (берётся
как дата запускаемого файла).
05.09.2022
ifml2/ifml2#58 Удобство сохранения истории в Редакторе
^ [Редактор] При сохранении загруженной ранее (не созданной с нуля) истории диалог
выбора файла предлагает тот же файл истории.

-----------------------------------------------------------------------------------------------
Выпуск 2016/5
Expand Down
5 changes: 5 additions & 0 deletions src/ifml2/editor/gui/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ private void saveStory(String storyFileName, boolean toMarkAsSaved) throws IFML2
// choose story file:
JFileChooser storyFileChooser = createStoryFileChooser();

if (storyFile != null)
{
storyFileChooser.setSelectedFile(storyFile);
}

if (storyFileChooser.showSaveDialog(this) != JFileChooser.APPROVE_OPTION)
{
return null;
Expand Down

0 comments on commit 66c7604

Please sign in to comment.