mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:06:39 +02:00
Remove TODO. Make isModified private.
This commit is contained in:
@@ -36,7 +36,7 @@ class MediaServersViewModel : ViewModel() {
|
|||||||
|
|
||||||
private val _fileServers = MutableStateFlow<List<Nip96MediaServers.ServerName>>(emptyList())
|
private val _fileServers = MutableStateFlow<List<Nip96MediaServers.ServerName>>(emptyList())
|
||||||
val fileServers = _fileServers.asStateFlow()
|
val fileServers = _fileServers.asStateFlow()
|
||||||
var isModified = false
|
private var isModified = false
|
||||||
|
|
||||||
fun load(account: Account) {
|
fun load(account: Account) {
|
||||||
this.account = account
|
this.account = account
|
||||||
@@ -108,7 +108,6 @@ class MediaServersViewModel : ViewModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun saveFileServers() {
|
fun saveFileServers() {
|
||||||
// TODO: Add setting the default file server here.
|
|
||||||
if (isModified) {
|
if (isModified) {
|
||||||
viewModelScope.launch(Dispatchers.IO) {
|
viewModelScope.launch(Dispatchers.IO) {
|
||||||
val serverList = _fileServers.value.map { it.baseUrl }
|
val serverList = _fileServers.value.map { it.baseUrl }
|
||||||
|
Reference in New Issue
Block a user