Add option to hide CapsLock and NumLock states (#864)

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/864
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: notiant <codeberg.cizj4@simplelogin.com>
Co-committed-by: notiant <codeberg.cizj4@simplelogin.com>
This commit is contained in:
notiant
2025-11-15 16:32:42 +01:00
committed by AnErrupTion
parent 68ec85f412
commit cc07c4870a
3 changed files with 5 additions and 1 deletions

View File

@@ -755,7 +755,7 @@ pub fn main() !void {
buffer.drawLabel(label_txt, buffer.box_x, buffer.box_y + buffer.box_height);
}
if (can_get_lock_state) draw_lock_state: {
if (!hide_keyboard_locks and can_get_lock_state) draw_lock_state: {
const lock_state = interop.getLockState() catch |err| {
try info_line.addMessage(lang.err_lock_state, config.error_bg, config.error_fg);
can_get_lock_state = false;