mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
CPP-8004 Set CLion's project name from CMake's ${PROJECT_NAME}: reset names cache on the welcome screen
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.openapi.project.impl;
|
||||
|
||||
import com.intellij.ide.RecentProjectsManager;
|
||||
import com.intellij.ide.plugins.IdeaPluginDescriptor;
|
||||
import com.intellij.ide.startup.StartupManagerEx;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
@@ -133,6 +134,8 @@ public class ProjectImpl extends PlatformComponentManagerImpl implements Project
|
||||
public void setProjectName(@NotNull String projectName) {
|
||||
if (!projectName.equals(myName)) {
|
||||
myName = projectName;
|
||||
RecentProjectsManager.getInstance().clearNameCache();
|
||||
|
||||
StartupManager.getInstance(this).runWhenProjectIsInitialized((DumbAwareRunnable)() -> {
|
||||
if (isDisposed()) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user