mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 15:19:13 +02:00
review pt 3
This commit is contained in:
parent
8b78935772
commit
7df3f9c3b2
2 changed files with 5 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ info_line: *InfoLine,
|
|||
fg: u32,
|
||||
bg: u32,
|
||||
|
||||
lang: *Lang,
|
||||
lang: Lang,
|
||||
|
||||
lua_error: bool = false,
|
||||
lua_error_logged: bool = false,
|
||||
|
|
@ -46,7 +46,7 @@ pub fn init(
|
|||
info_line: *InfoLine,
|
||||
fg: u32,
|
||||
bg: u32,
|
||||
lang: *Lang,
|
||||
lang: Lang,
|
||||
) !Lua {
|
||||
var self: Lua = .{
|
||||
.lua = try zlua.Lua.init(alloc),
|
||||
|
|
@ -137,10 +137,10 @@ fn draw(self: *Lua) void {
|
|||
self.lua_str = std.mem.concatWithSentinel(
|
||||
self.allocator,
|
||||
u8,
|
||||
&.{ "Cannot call draw(): ", errorStr },
|
||||
&.{ "cannot call draw(): ", errorStr },
|
||||
0,
|
||||
) catch unreachable;
|
||||
self.log.err(self.io, "Lua", "Error (Cannot call draw()): {s}", .{errorStr}) catch unreachable;
|
||||
self.log.err(self.io, "lua", "error (cannot call draw()): {s}", .{errorStr}) catch unreachable;
|
||||
self.lua_error = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1111,7 +1111,7 @@ pub fn main(init: std.process.Init) !void {
|
|||
&state.info_line,
|
||||
state.config.error_fg,
|
||||
state.config.error_bg,
|
||||
&state.lang,
|
||||
state.lang,
|
||||
);
|
||||
animation = lua.widget();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue