mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
ui: disable subs indicator when chat is stopped (#4672)
This commit is contained in:
parent
84ae39b012
commit
cb683d0706
2 changed files with 5 additions and 1 deletions
|
@ -341,6 +341,7 @@ struct SubsStatusIndicator: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.disabled(ChatModel.shared.chatRunning != true)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
startTimer()
|
startTimer()
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,7 +421,10 @@ fun SubscriptionStatusIndicator(click: (() -> Unit)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleButtonFrame(click = click) {
|
SimpleButtonFrame(
|
||||||
|
click = click,
|
||||||
|
disabled = chatModel.chatRunning.value != true
|
||||||
|
) {
|
||||||
SubscriptionStatusIndicatorView(subs = subs, hasSess = hasSess)
|
SubscriptionStatusIndicatorView(subs = subs, hasSess = hasSess)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue