Skip to content

Commit

Permalink
Deprecate old XML, allow exporting new XML
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Sep 19, 2023
1 parent 285a161 commit 799563e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/kotlin/com/fwdekker/randomness/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.fwdekker.randomness
import com.fwdekker.randomness.template.Template
import com.fwdekker.randomness.template.TemplateList
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.SettingsCategory
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.service
import com.intellij.util.xmlb.annotations.Transient
Expand Down Expand Up @@ -50,8 +51,12 @@ data class Settings(var templateList: TemplateList = TemplateList()) : State() {
* The actual user's actual stored actually-serialized settings (actually).
*/
@JBState(
name = "com.fwdekker.randomness.PersistentSettings",
storages = [Storage("\$APP_CONFIG\$/randomness-beta.xml")],
name = "Randomness",
storages = [
Storage("\$APP_CONFIG\$/randomness.xml", deprecated = true),
Storage("\$APP_CONFIG\$/randomness-beta.xml", exportable = true),
],
category = SettingsCategory.PLUGINS,
)
class PersistentSettings : PersistentStateComponent<Settings> {
private val settings = Settings()
Expand Down

0 comments on commit 799563e

Please sign in to comment.