mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-12 02:02:16 +10:00
Block user operations
This commit is contained in:
+3
-1
@@ -57,7 +57,7 @@ public class Presenter implements IPlugInPort {
|
|||||||
private static final Logger LOG = Logger.getLogger(Presenter.class);
|
private static final Logger LOG = Logger.getLogger(Presenter.class);
|
||||||
|
|
||||||
public static final VersionNumber CURRENT_VERSION = new VersionNumber(3,
|
public static final VersionNumber CURRENT_VERSION = new VersionNumber(3,
|
||||||
12, 0);
|
13, 0);
|
||||||
public static final String DEFAULTS_KEY_PREFIX = "default.";
|
public static final String DEFAULTS_KEY_PREFIX = "default.";
|
||||||
|
|
||||||
public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections
|
public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections
|
||||||
@@ -274,11 +274,13 @@ public class Presenter implements IPlugInPort {
|
|||||||
isBackup);
|
isBackup);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
LOG.error("Could not save file", ex);
|
LOG.error("Could not save file", ex);
|
||||||
|
if (!isBackup) {
|
||||||
view.showMessage("Could not save file " + fileName
|
view.showMessage("Could not save file " + fileName
|
||||||
+ ". Check the log for details.", "Error",
|
+ ". Check the log for details.", "Error",
|
||||||
IView.ERROR_MESSAGE);
|
IView.ERROR_MESSAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCurrentFileName() {
|
public String getCurrentFileName() {
|
||||||
|
|||||||
Reference in New Issue
Block a user