Skip to content

Commit

Permalink
Display popover on clean start (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
artburkart authored Feb 15, 2025
1 parent d54543e commit 5fa067b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MeetingNotes/Views/PeerSyncView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ struct PeerSyncView: View {
// first coming online and a default "???" value should be set whatever the inline default
// from the library can provide. Since this is an @AppStorage() setup, if there's a configured
// setting, this won't get hit and we're just waiting cycles with the check.
if nameToDisplay == "???" {
if nameToDisplay.isEmpty || nameToDisplay == "???" {
// no user default is setup, so load a default value from the library
nameToDisplay = await peerToPeer.peerName
editNamePopoverShown = true
}
}
}
Expand Down

0 comments on commit 5fa067b

Please sign in to comment.