Add setting to disable keyboard layout toast

This commit is contained in:
Ala Alkhafaji
2025-11-11 19:40:35 +01:00
parent 8aa4254d57
commit fe1129c56c
4 changed files with 36 additions and 4 deletions
+6 -4
View File
@@ -57,10 +57,12 @@ Singleton {
const layoutChanged = isInitialized && currentLayout !== previousLayout && currentLayout !== I18n.tr("system.unknown-layout") && previousLayout !== "" && previousLayout !== I18n.tr("system.unknown-layout")
if (layoutChanged) {
const message = I18n.tr("toast.keyboard-layout.changed", {
"layout": currentLayout.toUpperCase()
})
ToastService.showNotice(message, "", "", 2000)
if (Settings.data.notifications.enableKeyboardLayoutToast) {
const message = I18n.tr("toast.keyboard-layout.changed", {
"layout": currentLayout.toUpperCase()
})
ToastService.showNotice(message, "", "", 2000)
}
Logger.d("KeyboardLayout", "Layout changed from", previousLayout, "to", currentLayout)
}