mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup - extract isUseProjectFrameAsSplash
GitOrigin-RevId: 6bd94f20584df32811fabcd7dd3632f087dbd847
This commit is contained in:
committed by
intellij-monorepo-bot
parent
45fd0cbaca
commit
72cc341a78
@@ -528,7 +528,7 @@ open class RecentProjectsManagerBase : RecentProjectsManager(), PersistentStateC
|
||||
}
|
||||
|
||||
private fun writeInfoFile(frameInfo: FrameInfo?, frame: JFrame) {
|
||||
if (!Registry.`is`("ide.project.frame.as.splash")) {
|
||||
if (!isUseProjectFrameAsSplash()) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -617,7 +617,7 @@ int32 "extendedState"
|
||||
val manager = instanceEx
|
||||
val openProjects = serviceIfCreated<ProjectManager>()?.openProjects ?: return
|
||||
// do not delete info file if ProjectManager not created - it means that it was simply not loaded, so, unlikely something is changed
|
||||
if (openProjects.isEmpty() || !Registry.`is`("ide.project.frame.as.splash")) {
|
||||
if (openProjects.isEmpty() || !isUseProjectFrameAsSplash()) {
|
||||
Files.deleteIfExists(getLastProjectFrameInfoFile())
|
||||
}
|
||||
else {
|
||||
@@ -635,6 +635,8 @@ int32 "extendedState"
|
||||
}
|
||||
}
|
||||
|
||||
private fun isUseProjectFrameAsSplash() = Registry.`is`("ide.project.frame.as.splash")
|
||||
|
||||
private fun readProjectName(path: String): String {
|
||||
if (!RecentProjectsManagerBase.isFileSystemPath(path)) {
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user