@@ -289,56 +289,64 @@ struct JailbreakView: View {
289
289
}
290
290
} label: {
291
291
Label ( title: {
292
- if !requiresEnvironmentUpdate {
293
- if isJailbroken ( ) {
294
- Text ( " Status_Title_Jailbroken " )
295
- } else {
296
- switch jailbreakingProgress {
297
- case . idle:
298
- Text ( " Button_Jailbreak_Title " )
299
- case . jailbreaking:
300
- Text ( " Status_Title_Jailbreaking " )
301
- case . selectingPackageManager:
302
- Text ( " Status_Title_Select_Package_Managers " )
303
- case . finished:
304
- if jailbreakingError == nil {
305
- Text ( " Status_Title_Jailbroken " )
306
- } else {
307
- Text ( " Status_Title_Unsuccessful " )
292
+ if Fugu15 . supportsThisDeviceBool ( ) {
293
+ if !requiresEnvironmentUpdate {
294
+ if isJailbroken ( ) {
295
+ Text ( " Status_Title_Jailbroken " )
296
+ } else {
297
+ switch jailbreakingProgress {
298
+ case . idle:
299
+ Text ( " Button_Jailbreak_Title " )
300
+ case . jailbreaking:
301
+ Text ( " Status_Title_Jailbreaking " )
302
+ case . selectingPackageManager:
303
+ Text ( " Status_Title_Select_Package_Managers " )
304
+ case . finished:
305
+ if jailbreakingError == nil {
306
+ Text ( " Status_Title_Jailbroken " )
307
+ } else {
308
+ Text ( " Status_Title_Unsuccessful " )
309
+ }
308
310
}
309
311
}
312
+ } else {
313
+ Text ( " Button_Update_Environment " )
310
314
}
311
315
} else {
312
- Text ( " Button_Update_Environment " )
316
+ Text ( " Unsupported " )
313
317
}
314
318
315
319
} , icon: {
316
- if !requiresEnvironmentUpdate {
317
- ZStack {
318
- switch jailbreakingProgress {
319
- case . jailbreaking:
320
- LoadingIndicator ( animation: . doubleHelix, color: . white, size: . small)
321
- case . selectingPackageManager:
322
- Image ( systemName: " shippingbox " )
323
- case . finished:
324
- if jailbreakingError == nil {
320
+ if Fugu15 . supportsThisDeviceBool ( ) {
321
+ if !requiresEnvironmentUpdate {
322
+ ZStack {
323
+ switch jailbreakingProgress {
324
+ case . jailbreaking:
325
+ LoadingIndicator ( animation: . doubleHelix, color: . white, size: . small)
326
+ case . selectingPackageManager:
327
+ Image ( systemName: " shippingbox " )
328
+ case . finished:
329
+ if jailbreakingError == nil {
330
+ Image ( systemName: " lock.open " )
331
+ } else {
332
+ Image ( systemName: " lock.slash " )
333
+ }
334
+ case . idle:
325
335
Image ( systemName: " lock.open " )
326
- } else {
327
- Image ( systemName: " lock.slash " )
328
336
}
329
- case . idle:
330
- Image ( systemName: " lock.open " )
331
337
}
338
+ } else {
339
+ Image ( systemName: " doc.badge.arrow.up " )
332
340
}
333
341
} else {
334
- Image ( systemName: " doc.badge.arrow.up " )
342
+ Image ( systemName: " lock.slash " )
335
343
}
336
344
} )
337
345
. foregroundColor ( whatCouldThisVariablePossiblyEvenMean ? . black : . white)
338
346
. padding ( )
339
347
. frame ( maxWidth: isJailbreaking ? . infinity : 280 )
340
348
}
341
- . disabled ( ( isJailbroken ( ) || isJailbreaking) && !requiresEnvironmentUpdate)
349
+ . disabled ( ( isJailbroken ( ) || isJailbreaking || !Fugu15 . supportsThisDeviceBool ( ) ) && !requiresEnvironmentUpdate)
342
350
. drawingGroup ( )
343
351
344
352
if jailbreakingProgress == . finished || jailbreakingProgress == . jailbreaking {
0 commit comments