diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 12:30:02 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 12:30:02 +0800 |
| commit | abbdcfb0cef7c8fddf3d20fe099f4524229c140b (patch) | |
| tree | e5bca100b32c25b42b301e48d6d9bd273c330f2c /src/i18n/Engine.cpp | |
| parent | 1bbee573343063f4df284088dcd6577bfce0b95f (diff) | |
fix: address copilot review commentsclip-perm
- Fix log level from INFO to DEBUG in DataDevice.cpp for offer operations
- Remove unused permissionToHumanString function
- Add I18n keys for clipboard read/write permissions
- Add primary selection permission check in XWM.cpp (was only checking clipboard)
- Add async permission handling in DataDeviceWlr.cpp for zwlr protocol
Diffstat (limited to 'src/i18n/Engine.cpp')
| -rw-r--r-- | src/i18n/Engine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i18n/Engine.cpp b/src/i18n/Engine.cpp index d31da80b..d4e88ff0 100644 --- a/src/i18n/Engine.cpp +++ b/src/i18n/Engine.cpp @@ -162,6 +162,10 @@ I18n::CI18nEngine::CI18nEngine() { huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_REQUEST_SCREENCOPY, "An application <b>{app}</b> is trying to capture your screen.\n\nDo you want to allow it to?"); huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_REQUEST_PLUGIN, "An application <b>{app}</b> is trying to load a plugin: <b>{plugin}</b>.\n\nDo you want to allow it to?"); huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_REQUEST_KEYBOARD, "A new keyboard has been detected: <b>{keyboard}</b>.\n\nDo you want to allow it to operate?"); + huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_REQUEST_CLIPBOARD_READ, + "An application <b>{app}</b> is trying to read from your clipboard.\n\nDo you want to allow it to?"); + huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_REQUEST_CLIPBOARD_WRITE, + "An application <b>{app}</b> is trying to write to your clipboard.\n\nDo you want to allow it to?"); huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_UNKNOWN_NAME, "(unknown)"); huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_TITLE, "Permission request"); huEngine->registerEntry("en_US", TXT_KEY_PERMISSION_PERSISTENCE_HINT, "Hint: you can set persistent rules for these in the Hyprland config file."); |
