mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 15:19:13 +02:00
pass: no lid counter
This commit is contained in:
parent
54a322e1e5
commit
bf678017ff
3 changed files with 1 additions and 5 deletions
|
|
@ -19,8 +19,6 @@ calculate_timeout_fn: ?*const fn (*Label, *anyopaque) anyerror!?usize,
|
|||
component_pos: Position,
|
||||
children_pos: Position,
|
||||
|
||||
pub var lidCounter: u64 = 0;
|
||||
|
||||
pub fn init(
|
||||
text: []const u8,
|
||||
max_width: ?usize,
|
||||
|
|
@ -29,7 +27,6 @@ pub fn init(
|
|||
update_fn: ?*const fn (*Label, *anyopaque) anyerror!void,
|
||||
calculate_timeout_fn: ?*const fn (*Label, *anyopaque) anyerror!?usize,
|
||||
) Label {
|
||||
lidCounter += 1;
|
||||
return .{
|
||||
.instance = null,
|
||||
.allocator = null,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ pub const UNDEFINED_CMD: []const u8 = "echo \"You forgot to define 'cmd'!\"";
|
|||
pub const CustomCommandInfo = struct {
|
||||
name: []const u8 = "",
|
||||
cmd: ?[]const u8 = null,
|
||||
/// To be set to the label widget's `lid`
|
||||
/// To be set to the label's widget ID
|
||||
id: u64 = 0,
|
||||
|
||||
/// In frames, the refresh rate for the `cmd` to run again
|
||||
|
|
|
|||
|
|
@ -225,7 +225,6 @@ pub fn main() !void {
|
|||
custom.labels = .init(state.allocator);
|
||||
var config_parser = try IniParser(Config).init(state.allocator, config_path, migrator.configFieldHandler);
|
||||
defer config_parser.deinit();
|
||||
// mapping.deinit() has to be done here
|
||||
defer {
|
||||
if (!shutdown or !restart) {
|
||||
var iter = custom.binds.iterator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue