From c02b0ce41f7ceb172529db47ae34f8ec6d9b70ab Mon Sep 17 00:00:00 2001 From: fmodf Date: Fri, 18 Oct 2024 19:37:49 +0200 Subject: [PATCH] wip --- .../View/Main/Settings/SettingsScreen.swift | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift index 263f280..3e759ed 100644 --- a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift +++ b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift @@ -69,18 +69,20 @@ struct SettingsScreen: View { } } - SharedListRow( - iconType: .image(Image(systemName: "plus"), .Material.Elements.active), - text: L10n.Settings.Section.Accounts.add, - controlType: .none - ) - .onTapGesture { - router.showAlert( - .confirmationDialog, - title: L10n.Settings.Section.Accounts.add, - subtitle: L10n.Settings.Section.Accounts.addHint - ) { - addAccountSelector + if parent == .main { + SharedListRow( + iconType: .image(Image(systemName: "plus"), .Material.Elements.active), + text: L10n.Settings.Section.Accounts.add, + controlType: .none + ) + .onTapGesture { + router.showAlert( + .confirmationDialog, + title: L10n.Settings.Section.Accounts.add, + subtitle: L10n.Settings.Section.Accounts.addHint + ) { + addAccountSelector + } } }