Skip to content

Commit

Permalink
fix: minor ui fixes (#130)
Browse files Browse the repository at this point in the history
* fix: minor ui fixes

* Update MiniSim/Views/Preferences.swift
  • Loading branch information
okwasniewski authored Sep 21, 2024
1 parent d8b552e commit 3b73a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MiniSim/Service/DeviceParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class IOSPhysicalDeviceParser: DeviceParser {
name: jsonObjectDevice.deviceProperties.name,
version: jsonObjectDevice.deviceProperties.osVersionNumber,
identifier: jsonObjectDevice.hardwareProperties.udid,
booted: jsonObjectDevice.connectionProperties.tunnelState != "unavailable",
booted: !["unavailable", "disconnected"].contains(jsonObjectDevice.connectionProperties.tunnelState),
platform: .ios,
type: .physical
)
Expand Down
8 changes: 3 additions & 5 deletions MiniSim/Views/Preferences.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//
// Preferences.swift
// MiniSim
//
// Created by Oskar Kwaśniewski on 28/01/2023.
Expand Down Expand Up @@ -27,9 +25,9 @@ struct Preferences: View {
Settings.Container(contentWidth: 400) {
Settings.Section(title: "Icon:") {
Picker("", selection: $menuImageSelected) {
ForEach(MenuImage.allCases, id: \.self) { image in
Image(nsImage: NSImage(imageLiteralResourceName: image.rawValue))
.tag(image.rawValue)
ForEach(MenuImage.allCases, id: \.self) { menuImage in
Image(nsImage: menuImage.image ?? NSImage())
.tag(menuImage.rawValue)
}
}
.fixedSize(horizontal: true, vertical: false)
Expand Down

0 comments on commit 3b73a25

Please sign in to comment.