[kotlin] Fix saving the settings of the openInEditor checkbox in move dialog

#KTIJ-31264 Fixed

GitOrigin-RevId: 6e55088c600695aab1ba0b2dda970ce399f7c09d
This commit is contained in:
Bart van Helvert
2024-09-09 19:37:23 +02:00
committed by intellij-monorepo-bot
parent 22c3b2a947
commit d66d564778

View File

@@ -48,11 +48,11 @@ class K2MoveDialog(project: Project, private val model: K2MoveModel) : Refactori
private fun saveSettings() {
mainPanel.apply()
KotlinCommonRefactoringSettings.getInstance().MOVE_PREVIEW_USAGES = isPreviewUsages
PropertiesComponent.getInstance().setValue("MoveFile.OpenInEditor", isOpenInEditor)
}
override fun doAction() {
saveSettings()
if (isOpenInEditor) PropertiesComponent.getInstance().setValue("MoveFile.OpenInEditor", true)
val descriptor = ActionUtil.underModalProgress(
project,
KotlinBundle.message("preparing.move.descriptor")