mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Dismissing the closing confirmation dialog using the "X" button should
behave the same as selecting "Cancel"
This commit is contained in:
@@ -378,7 +378,7 @@ public class Presenter implements IPlugInPort {
|
||||
if (projectFileManager.isModified()) {
|
||||
int response =
|
||||
view.showConfirmDialog(UNSAVED_CHANGES, WARNING,
|
||||
IView.YES_NO_CANCEL_OPTION, IView.WARNING_MESSAGE);
|
||||
IView.YES_NO_CANCEL_OPTION, IView.WARNING_MESSAGE);
|
||||
if (response == IView.YES_OPTION) {
|
||||
if (this.getCurrentFileName() == null) {
|
||||
File file = view.promptFileSave();
|
||||
@@ -390,7 +390,7 @@ public class Presenter implements IPlugInPort {
|
||||
saveProjectToFile(this.getCurrentFileName(), false);
|
||||
}
|
||||
}
|
||||
return response != IView.CANCEL_OPTION;
|
||||
return response != IView.CANCEL_OPTION && response >= 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3076,6 +3076,22 @@
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
<org.diylc.appframework.update.Version>
|
||||
<versionNumber>
|
||||
<major>4</major>
|
||||
<minor>7</minor>
|
||||
<build>0</build>
|
||||
</versionNumber>
|
||||
<releaseDate>2020-05-03 00:00:00.000 CET</releaseDate>
|
||||
<name></name>
|
||||
<changes>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Dismissing the closing confirmation dialog using the "X" button should behave the same as selecting "Cancel"</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
</a>
|
||||
</java.util.Arrays_-ArrayList>
|
||||
|
||||
Reference in New Issue
Block a user