Skip to content

Commit 76727be

Browse files
committed
do configure project after finishing wizard
1 parent 5e7ecc9 commit 76727be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/client/Client.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Client(
8787
}
8888
}
8989

90-
private fun configureProject() {
90+
fun configureProject() {
9191
CheckProjectConfigurationRequest(
9292
getProjectConfigGrpcRequest(project, Testgen.ConfigMode.CHECK),
9393
project,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.utbot.cpp.clion.plugin.ui.wizard.steps.BuildOptionsStep
1212
import org.utbot.cpp.clion.plugin.ui.wizard.steps.ConnectionStep
1313
import org.utbot.cpp.clion.plugin.ui.wizard.steps.IntroStep
1414
import org.utbot.cpp.clion.plugin.ui.wizard.steps.FinalStep
15+
import org.utbot.cpp.clion.plugin.utils.getCurrentClient
1516

1617
class UTBotWizard(private val project: Project) : AbstractWizard<UTBotBaseWizardStep>("UTBot: Quickstart", project) {
1718
// copy of settings to make changes during wizard steps
@@ -40,6 +41,8 @@ class UTBotWizard(private val project: Project) : AbstractWizard<UTBotBaseWizard
4041
fireUTBotSettingsChanged()
4142
}
4243

44+
project.getCurrentClient().configureProject()
45+
4346
super.doOKAction()
4447
}
4548

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ class ConnectionStep(
7878
useConnectionDefaults.addOnChangeListener { newValue ->
7979
if (newValue) {
8080
beforeCheckingBoxConnectionInfo = ConnectionInfo()
81-
println("remembered before check info: ${beforeCheckingBoxConnectionInfo?.remotePath ?: ""}")
8281
defaultConnectionInfo.apply()
8382
} else {
84-
println("Apply before check info: ${beforeCheckingBoxConnectionInfo?.remotePath ?: "empty"}")
8583
beforeCheckingBoxConnectionInfo?.apply()
8684
}
8785
}
@@ -108,7 +106,6 @@ class ConnectionStep(
108106
.bindSelected(getter = { useConnectionDefaults.value }, setter = { newValue ->
109107
useConnectionDefaults.value = newValue
110108
}).selected.addListener { newValue ->
111-
println("New value was set to checkbox: $newValue")
112109
useConnectionDefaults.value = newValue
113110
}
114111
}

0 commit comments

Comments
 (0)