mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
unchecking "Confirm window to open project in" works (IDEA-60332); some refactoring
This commit is contained in:
@@ -191,7 +191,7 @@ public class NewProjectUtil {
|
||||
if (openProjects.length > 0) {
|
||||
final GeneralSettings settings = GeneralSettings.getInstance();
|
||||
int exitCode = settings.getConfirmOpenNewProject();
|
||||
if (exitCode < 0) {
|
||||
if (exitCode == GeneralSettings.OPEN_PROJECT_ASK) {
|
||||
exitCode = Messages.showDialog(IdeBundle.message("prompt.open.project.in.new.frame"), IdeBundle.message("title.new.project"),
|
||||
new String[]{IdeBundle.message("button.newframe"), IdeBundle.message("button.existingframe")}, 1, 0,
|
||||
Messages.getQuestionIcon(), new ProjectNewWindowDoNotAskOption());
|
||||
|
||||
Reference in New Issue
Block a user