mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Add setting to disable keyboard layout toast
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user