aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/config/MainOptions.kt
blob: 1efa97053e436089d4207554c8e8739e7b6d7dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package moe.nea.ledger.config

import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption

class MainOptions {
	@ConfigOption(name = "Marker for Update UI", desc = "_")
	@JvmField
	@UpdateUiMarker
	@Transient
	var testOption = Unit

	@ConfigOption(name = "Check for Updates", desc = "Automatically check for updates on startup")
	@ConfigEditorDropdown
	@JvmField
	var updateCheck = UpdateCheckBehaviour.SEMI

	enum class UpdateCheckBehaviour(val label: String) {
		SEMI("Semi-Automatic"),
		FULL("Full-Automatic"),
		NONE("Don't check");

		override fun toString(): String {
			return label
		}
	}
}