Skip to content

Commit 2a09798

Browse files
committed
fix: unfinished wizard modifies settings
1 parent 72931c4 commit 2a09798

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/settings/UTBotAllProjectSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ class UTBotAllProjectSettings(val project: Project) {
6969
}
7070

7171
data class UTBotSettingsModel(
72-
var projectSettings: UTBotProjectStoredSettings.State,
73-
var globalSettings: UTBotProjectIndependentSettings.State,
72+
val projectSettings: UTBotProjectStoredSettings.State,
73+
val globalSettings: UTBotProjectIndependentSettings.State,
7474
)

clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/ui/wizard/UTBotWizard.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import java.awt.event.KeyEvent
1717

1818
class UTBotWizard(private val project: Project) : AbstractWizard<UTBotBaseWizardStep>("UTBot: Quickstart", project) {
1919
// copy of settings to make changes during wizard steps
20-
private val mySettingsModel = UTBotSettingsModel(project.settings.storedSettings, projectIndependentSettings)
20+
private val mySettingsModel = UTBotSettingsModel(project.settings.storedSettings.copy(), projectIndependentSettings.copy())
2121

2222
init {
2323
addStep(IntroStep())

0 commit comments

Comments
 (0)