You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ControlRoom/Main Window/SimulatorAction.swift
+17-9Lines changed: 17 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,33 +9,41 @@
9
9
importstruct SwiftUI.LocalizedStringKey
10
10
11
11
enumAction:Int,Identifiable{
12
+
case power
12
13
case rename
13
14
case clone
14
15
case delete
16
+
case openRoot
15
17
16
18
varid:Int{ rawValue }
17
19
18
20
varsheetTitle:LocalizedStringKey{
19
21
switchself{
20
-
case.rename:return"Rename Simulator"
21
-
case.clone:return"Clone Simulator"
22
-
case.delete:return"Delete Simulator"
22
+
case.power:""
23
+
case.rename:"Rename Simulator"
24
+
case.clone:"Clone Simulator"
25
+
case.delete:"Delete Simulator"
26
+
case.openRoot:""
23
27
}
24
28
}
25
29
26
30
varsheetMessage:LocalizedStringKey{
27
31
switchself{
28
-
case.rename:return"Enter a new name for this simulator. It may be the same as the name of an existing simulator, but a unique name will make it easier to identify."
29
-
case.clone:return"Enter a name for the new simulator. It may be the same as the name of an existing simulator, but a unique name will make it easier to identify."
30
-
case.delete:return"Are you sure you want to delete this simulator? You will not be able to undo this action."
32
+
case.power:""
33
+
case.rename:"Enter a new name for this simulator. It may be the same as the name of an existing simulator, but a unique name will make it easier to identify."
34
+
case.clone:"Enter a name for the new simulator. It may be the same as the name of an existing simulator, but a unique name will make it easier to identify."
35
+
case.delete:"Are you sure you want to delete this simulator? You will not be able to undo this action."
0 commit comments