mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
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:
@@ -53,6 +53,7 @@ gameoflife_frame_delay: usize = 6,
|
||||
gameoflife_initial_density: f32 = 0.4,
|
||||
hide_borders: bool = false,
|
||||
hide_key_hints: bool = false,
|
||||
hide_keyboard_locks: bool = false,
|
||||
hide_version_string: bool = false,
|
||||
initial_info_text: ?[]const u8 = null,
|
||||
input_len: u8 = 34,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user