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: KDE Connect/KDE Connect/Views/Devices/DevicesView.swift
+28-18
Original file line number
Diff line number
Diff line change
@@ -43,55 +43,61 @@ struct DevicesView: View {
43
43
Section(header:Text("Connected Devices")){
44
44
if(connectedDevicesIds.isEmpty){
45
45
Text("No devices currently connected.\nConnected devices will appear here. Please Refresh Discovery if a saved device is already online but not shown here.")
46
+
.padding(.vertical,8)
46
47
}else{
47
48
ForEach(connectedDevicesIds, id: \.self){ key in
48
49
NavigationLink(
49
50
// How do we know what to pass to the details view?
50
51
// Use the "key" from ForEach aka device ID to get it from
51
52
// backgroundService's _devices dictionary for the value (Device class objects)
// TODO: Might want to add the device description as
83
87
// id:desc dictionary?
84
88
//Text(key)
85
89
}
86
90
}
87
-
})
91
+
}
92
+
)
88
93
}
89
94
}
90
95
}
91
96
92
97
Section(header:Text("Discoverable Devices")){
93
98
if(visibleDevicesIds.isEmpty){
94
99
Text("No devices discoverable on this network.\nMake sure to Refresh Discovery and check that the other devices are also running KDE Connect & are connected to the same network as this device.")
Section(header:Text("Remembered Devices"), footer:Text("To connect to Remembered Devices, make sure they are connected to the same network as this device.")){
125
132
if(savedDevicesIds.isEmpty){
126
133
Text("No remembered devices.\nDevices that were previously connected will appear here.")
Text("If there are phantom devices or something just doesn't behave correctly, erasing all saved devices data might fix it. Requires the app to be fully restarted.")
24
-
.font(.system(size:12))
13
+
Section(header:Text("DANGEROUS OPTIONS"), footer:Text("The options above are irreversible and require a complete app restart to take effect.")){
Text("If there are phantom devices or something just doesn't behave correctly, erasing all saved devices data might fix it. Requires the app to be fully restarted.")
Text("Delete the host's certificate and re-generate it upon restart. Requires the app to be fully restarted. NOTE: this will make the device unable to connect with previously connected devices. You must unpair this device from the other remote devices and pair them again.")
Text("Delete the host's certificate and re-generate it upon restart. Requires the app to be fully restarted. NOTE: this will make the device unable to connect with previously connected devices. You must unpair this device from the other remote devices and pair them again.")
0 commit comments