desktop: close start modals before rail actions

This commit is contained in:
sh committed 2026-10-14 07:43:26 +00:00
1 parent 4b0c8f3835
commit 65c30eaba2
1 file changed
+3
@@ -65,6 +65,7 @@ private fun RowScope.RailContent(userPickerState: MutableStateFlow<AnimatedViewS
}
}
RailItem(MR.images.ic_settings, stringResource(MR.strings.settings_section_title_settings), active = false) {
ModalManager.start.closeModals()
ModalManager.start.showModalCloseable(cardScreen = true) { close ->
SettingsView(chatModel, setPerformLA, close)
}
@@ -98,6 +99,7 @@ private fun RailUsers(userPickerState: MutableStateFlow<AnimatedViewState>) {
.clip(CircleShape)
.clickable(enabled = enabled) {
if (user.activeUser) {
ModalManager.start.closeModals()
userPickerState.value = AnimatedViewState.VISIBLE
} else {
switchToUser(user)
@@ -149,6 +151,7 @@ private fun RailTags() {
}
}
RailItem(MR.images.ic_add, stringResource(MR.strings.chat_list_add_list), active = false) {
ModalManager.start.closeModals()
ModalManager.start.showModalCloseable { close ->
TagListEditor(rhId = rhId, close = close)
}