Change button order
This commit is contained in:
parent
7444856b44
commit
4e1f7104d0
|
@ -245,16 +245,6 @@ class RenameAction extends AbstractAction {
|
|||
private ActionPopup createLicensePopup(String message, ActionEvent evt) {
|
||||
ActionPopup actionPopup = new ActionPopup("License Required", ResourceManager.getIcon("file.lock"));
|
||||
|
||||
actionPopup.add(newAction("Select License File", ResourceManager.getIcon("license.import"), c -> {
|
||||
withWaitCursor(evt.getSource(), () -> {
|
||||
List<File> files = UserFiles.FileChooser.AWT.showLoadDialogSelectFiles(false, false, null, MediaTypes.LICENSE_FILES, "Select License", evt);
|
||||
if (files.size() > 0) {
|
||||
configureLicense(files.get(0));
|
||||
return;
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
actionPopup.add(newAction("Paste License Key", ResourceManager.getIcon("license.import"), c -> {
|
||||
withWaitCursor(evt.getSource(), () -> {
|
||||
try {
|
||||
|
@ -272,6 +262,16 @@ class RenameAction extends AbstractAction {
|
|||
});
|
||||
}));
|
||||
|
||||
actionPopup.add(newAction("Select License File", ResourceManager.getIcon("license.import"), c -> {
|
||||
withWaitCursor(evt.getSource(), () -> {
|
||||
List<File> files = UserFiles.FileChooser.AWT.showLoadDialogSelectFiles(false, false, null, MediaTypes.LICENSE_FILES, "Select License", evt);
|
||||
if (files.size() > 0) {
|
||||
configureLicense(files.get(0));
|
||||
return;
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
actionPopup.add(newAction("Purchase License", ResourceManager.getIcon("license.purchase"), c -> {
|
||||
openURI(getPurchaseURL());
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue