Skip to content

Commit 9050e0c

Browse files
committed
ux: add context menu option to ignore 'long time no see' warning on start view (fixes #328)
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 92ef5a7 commit 9050e0c

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

Localizable.xcstrings

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17270,6 +17270,52 @@
1727017270
}
1727117271
}
1727217272
},
17273+
"Ignore for this device" : {
17274+
"localizations" : {
17275+
"de" : {
17276+
"stringUnit" : {
17277+
"state" : "translated",
17278+
"value" : "Für dieses Gerät ignorieren"
17279+
}
17280+
},
17281+
"es" : {
17282+
"stringUnit" : {
17283+
"state" : "translated",
17284+
"value" : "Ignorar para este dispositivo"
17285+
}
17286+
},
17287+
"it" : {
17288+
"stringUnit" : {
17289+
"state" : "translated",
17290+
"value" : "Ignora per questo dispositivo"
17291+
}
17292+
},
17293+
"ja" : {
17294+
"stringUnit" : {
17295+
"state" : "translated",
17296+
"value" : "このデバイスを無視"
17297+
}
17298+
},
17299+
"nl" : {
17300+
"stringUnit" : {
17301+
"state" : "translated",
17302+
"value" : "Voor dit apparaat negeren"
17303+
}
17304+
},
17305+
"uk" : {
17306+
"stringUnit" : {
17307+
"state" : "translated",
17308+
"value" : "Ігнорувати для цього пристрою"
17309+
}
17310+
},
17311+
"zh-Hans" : {
17312+
"stringUnit" : {
17313+
"state" : "translated",
17314+
"value" : "对此设备忽略"
17315+
}
17316+
}
17317+
}
17318+
},
1727317319
"Ignore patterns" : {
1727417320
"localizations" : {
1727517321
"de" : {

Sushitrain/StartView.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,13 @@ struct StartView: View {
555555
systemImage: "exclamationmark.triangle.fill"
556556
)
557557
.foregroundStyle(.orange)
558+
}.contextMenu {
559+
Button("Ignore for this device") {
560+
appState.userSettings.ignoreLongTimeNoSeeDevices.insert(device.deviceID())
561+
Task {
562+
await self.update()
563+
}
564+
}
558565
}
559566
}
560567
}

0 commit comments

Comments
 (0)