From 1f7808ebcbf9e9f9074d77b6cc936b1bef588352 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 21 Mar 2019 15:55:30 +0100 Subject: [PATCH] DoNotSaveDefaults - don't touch PropertiesComponent for project --- ...veDefaults.kt => DoNotSaveDefaultsTest.kt} | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) rename platform/configuration-store-impl/testSrc/{DoNotSaveDefaults.kt => DoNotSaveDefaultsTest.kt} (89%) diff --git a/platform/configuration-store-impl/testSrc/DoNotSaveDefaults.kt b/platform/configuration-store-impl/testSrc/DoNotSaveDefaultsTest.kt similarity index 89% rename from platform/configuration-store-impl/testSrc/DoNotSaveDefaults.kt rename to platform/configuration-store-impl/testSrc/DoNotSaveDefaultsTest.kt index 3a2d531532d2..a23027089399 100644 --- a/platform/configuration-store-impl/testSrc/DoNotSaveDefaults.kt +++ b/platform/configuration-store-impl/testSrc/DoNotSaveDefaultsTest.kt @@ -82,15 +82,16 @@ internal class DoNotSaveDefaultsTest { } } - val propertyComponent = PropertiesComponent.getInstance() - // - propertyComponent.unsetValue("file.gist.reindex.count") - propertyComponent.unsetValue("android-component-compatibility-check") - // - propertyComponent.unsetValue("CommitChangeListDialog.DETAILS_SPLITTER_PROPORTION_2") - propertyComponent.unsetValue("ts.lib.d.ts.version") - propertyComponent.unsetValue("nodejs_interpreter_path.stuck_in_default_project") - propertyComponent.unsetValue("android-component-compatibility-check") + if (componentManager !is Project) { + val propertyComponent = PropertiesComponent.getInstance() + // + propertyComponent.unsetValue("file.gist.reindex.count") + propertyComponent.unsetValue("android-component-compatibility-check") + // + propertyComponent.unsetValue("CommitChangeListDialog.DETAILS_SPLITTER_PROPORTION_2") + propertyComponent.unsetValue("ts.lib.d.ts.version") + propertyComponent.unsetValue("nodejs_interpreter_path.stuck_in_default_project") + } val useModCountOldValue = System.getProperty("store.save.use.modificationCount") try {