Commit 86d62ac 1 parent 0ad77ea commit 86d62ac Copy full SHA for 86d62ac
File tree 1 file changed +6
-6
lines changed
src/main/kotlin/com/vk/admstorm/startup
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,22 +19,22 @@ object ChangeSshBackendStartup {
19
19
}
20
20
21
21
fun changeConfigurationProcess (project : Project ) {
22
- val prpCmp = PropertiesComponent .getInstance(project)
22
+ val properties = PropertiesComponent .getInstance(project)
23
23
24
- val dntShow = prpCmp .getBoolean(SSH_NOTIFICATOR_OPTION )
24
+ val dntShow = properties .getBoolean(SSH_NOTIFICATOR_OPTION )
25
25
if (dntShow) {
26
26
LOG .info(" OPENSSH option was enabled" )
27
27
return
28
28
}
29
29
30
30
// TODO: Remove it after 2 month
31
- if (prpCmp.getValue (LEGACY_SSH_NOTIFICATOR_OPTION ) != null ) {
32
- prpCmp .unsetValue(LEGACY_SSH_NOTIFICATOR_OPTION )
31
+ if (properties.isValueSet (LEGACY_SSH_NOTIFICATOR_OPTION )) {
32
+ properties .unsetValue(LEGACY_SSH_NOTIFICATOR_OPTION )
33
33
}
34
34
35
35
val sshSettingValue = AdvancedSettings .getEnum(SSH_CONFIG_BACKEND , SshConnectionConfigService .Kind ::class .java)
36
36
if (sshSettingValue == SshConnectionConfigService .Kind .OPENSSH ) {
37
- prpCmp .setValue(SSH_NOTIFICATOR_OPTION , true )
37
+ properties .setValue(SSH_NOTIFICATOR_OPTION , true )
38
38
LOG .info(" OPENSSH option was enabled before" )
39
39
return
40
40
}
@@ -56,6 +56,6 @@ object ChangeSshBackendStartup {
56
56
}
57
57
).show(project)
58
58
59
- prpCmp .setValue(LEGACY_SSH_NOTIFICATOR_OPTION , true )
59
+ properties .setValue(SSH_NOTIFICATOR_OPTION , true )
60
60
}
61
61
}
You can’t perform that action at this time.
0 commit comments