mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Add signed in flag to the developer options screen hook (#5914)
add signed in flag to the developer options screen hook
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ struct DeveloperOptionsScreen: View {
|
||||
|
||||
context.viewState.appHooks
|
||||
.developerOptionsScreenHook
|
||||
.generalSectionRows()
|
||||
.generalSectionRows(isSignedIn: context.viewState.isSignedIn)
|
||||
}
|
||||
|
||||
Section("Room List") {
|
||||
@@ -214,7 +214,7 @@ struct DeveloperOptionsScreen: View {
|
||||
|
||||
@ToolbarContentBuilder
|
||||
private var toolbar: some ToolbarContent {
|
||||
if context.viewState.isPresentedModally {
|
||||
if !context.viewState.isSignedIn {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
if #available(iOS 26.0, *) {
|
||||
Button(role: .close, action: dismiss.callAsFunction)
|
||||
|
||||
Reference in New Issue
Block a user