Cleanup code

This commit is contained in:
Alfonso Grillo
2022-11-02 16:33:51 +01:00
parent 68e02935d7
commit d7f8aefdb0
4 changed files with 31 additions and 10 deletions
@@ -91,9 +91,7 @@ struct UserOtherSessionsToolbar: ToolbarContent {
Button {
isShowLocationEnabled.toggle()
} label: {
let text = isShowLocationEnabled ? VectorL10n.userSessionsHideLocationInfo : VectorL10n.userSessionsShowLocationInfo
let image = isShowLocationEnabled ? "eye.slash" : "eye"
Label(text, systemImage: image)
Label(showLocationInfo: isShowLocationEnabled)
}
if sessionCount > 0 {