mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-53664 Simplify spellchecker settings: use global for words saving by default for projects with empty project dict
GitOrigin-RevId: ad01ecb4fcf10efe720efedf20a64f15bbf89798
This commit is contained in:
committed by
intellij-monorepo-bot
parent
96f25f6a4b
commit
d4d4e7cd40
@@ -15,11 +15,13 @@ public class SettingsTransferActivity implements StartupActivity {
|
||||
@Override
|
||||
public void runActivity(@NotNull Project project) {
|
||||
final SpellCheckerSettings settings = SpellCheckerSettings.getInstance(project);
|
||||
if (!settings.isSettingsTransferred() && settings.isUseSingleDictionaryToSave() && PROJECT.getName().equals(settings.getDictionaryToSave())) {
|
||||
if (ServiceManager.getService(project, ProjectDictionaryState.class).getProjectDictionary().getWords().isEmpty()) {
|
||||
if (!settings.isSettingsTransferred()) {
|
||||
if (settings.isUseSingleDictionaryToSave() &&
|
||||
PROJECT.getName().equals(settings.getDictionaryToSave()) &&
|
||||
ServiceManager.getService(project, ProjectDictionaryState.class).getProjectDictionary().getWords().isEmpty()) {
|
||||
settings.setDictionaryToSave(APP.getName());
|
||||
settings.setSettingsTransferred(true);
|
||||
}
|
||||
settings.setSettingsTransferred(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user