fix "Attempt to load key 'ide.cycle.scrolling' for not yet loaded registry"

GitOrigin-RevId: 224b3c4fc142c9fa3631bd0a8e3b0b4916f003c3
This commit is contained in:
Vladimir Krivosheev
2020-10-21 06:52:11 +00:00
committed by intellij-monorepo-bot
parent 2416e4d7c5
commit eab61f6721
@@ -619,9 +619,7 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
private fun updateDeprecatedProperties() {
HIDE_TOOL_STRIPES = hideToolStripes
SHOW_MAIN_TOOLBAR = showMainToolbar
CYCLE_SCROLLING = cycleScrolling
SHOW_CLOSE_BUTTON = showCloseButton
EDITOR_AA_TYPE = editorAAType
PRESENTATION_MODE = presentationMode
OVERRIDE_NONIDEA_LAF_FONTS = overrideLafFonts
PRESENTATION_MODE_FONT_SIZE = presentationModeFontSize
@@ -629,8 +627,6 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
FONT_SIZE = fontSize
FONT_FACE = fontFace
EDITOR_TAB_LIMIT = editorTabLimit
OVERRIDE_CONSOLE_CYCLE_BUFFER_SIZE = overrideConsoleCycleBufferSize
CONSOLE_CYCLE_BUFFER_SIZE_KB = consoleCycleBufferSizeKb
}
override fun getState() = state
@@ -680,7 +676,7 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
state.editorAAType = AntialiasingType.SUBPIXEL
}
if (state.ideAAType == AntialiasingType.SUBPIXEL && !AntialiasingType.canUseSubpixelAAForIDE()) {
state.ideAAType = AntialiasingType.GREYSCALE;
state.ideAAType = AntialiasingType.GREYSCALE
}
if (state.moveMouseOnDefaultButton) {
Registry.get("ide.settings.move.mouse.on.default.button").setValue(true)
@@ -739,7 +735,7 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
var CONSOLE_COMMAND_HISTORY_LIMIT = 300
@Suppress("unused", "PropertyName")
@Deprecated("Use cycleScrolling", replaceWith = ReplaceWith("cycleScrolling"))
@Deprecated("Use cycleScrolling", replaceWith = ReplaceWith("cycleScrolling"), level = DeprecationLevel.ERROR)
@JvmField
@Transient
var CYCLE_SCROLLING = true
@@ -756,12 +752,6 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
@Transient
var SHOW_CLOSE_BUTTON = true
@Suppress("unused", "PropertyName")
@Deprecated("Use editorAAType", replaceWith = ReplaceWith("editorAAType"))
@JvmField
@Transient
var EDITOR_AA_TYPE: AntialiasingType? = AntialiasingType.SUBPIXEL
@Suppress("unused", "PropertyName")
@Deprecated("Use presentationMode", replaceWith = ReplaceWith("presentationMode"))
@JvmField
@@ -785,17 +775,5 @@ class UISettings @NonInjectable constructor(private val notRoamableOptions: NotR
@JvmField
@Transient
var EDITOR_TAB_LIMIT = editorTabLimit
@Suppress("unused", "PropertyName")
@Deprecated("Use overrideConsoleCycleBufferSize", replaceWith = ReplaceWith("overrideConsoleCycleBufferSize"))
@JvmField
@Transient
var OVERRIDE_CONSOLE_CYCLE_BUFFER_SIZE = false
@Suppress("unused", "PropertyName")
@Deprecated("Use consoleCycleBufferSizeKb", replaceWith = ReplaceWith("consoleCycleBufferSizeKb"))
@JvmField
@Transient
var CONSOLE_CYCLE_BUFFER_SIZE_KB = consoleCycleBufferSizeKb
//</editor-fold>
}