Profile: Use default values to create profile

This commit is contained in:
zt515 2017-12-04 23:56:28 +08:00
parent 365488f461
commit b83dc8f752
2 changed files with 13 additions and 8 deletions

View File

@ -1,15 +1,19 @@
package io.neoterm.component.profile
import io.neoterm.frontend.preference.DefaultPreference
/**
* @author kiva
*/
class Profile {
lateinit var profileShell: String
var profileShell = DefaultPreference.loginShell
var profileInitialCommand = DefaultPreference.initialCommand
var enableBell = DefaultPreference.enableBell
var enableVibrate = DefaultPreference.enableVibrate
var enableExecveWrapper = DefaultPreference.enableExecveWrapper
var enableSpecialVolumeKeys = DefaultPreference.enableSpecialVolumeKeys
lateinit var profileFont: String
lateinit var profileColorScheme: String
lateinit var profileInitialCommand: String
var enableBell = false
var enableVibrate = false
var enableExecveWrapper = true
var specializeVolumeKeys = false
}

View File

@ -15,5 +15,6 @@ object DefaultPreference {
const val enableExplicitExtraKeysWeight = false
const val enableSpecialVolumeKeys = false
const val defaultShell = "bash"
}
const val loginShell = "bash"
const val initialCommand = ""
}