fix: update mini mode state on mode init

This commit is contained in:
CJ van den Berg 2024-10-27 18:46:55 +01:00
parent 4f7c76a46a
commit d06ebd0dd5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 2 deletions

View file

@ -71,7 +71,8 @@ pub fn Create(options: type) type {
self.allocator.destroy(self);
}
pub fn receive(_: *Self, _: tp.pid_ref, _: tp.message) error{Exit}!bool {
pub fn receive(self: *Self, _: tp.pid_ref, _: tp.message) error{Exit}!bool {
self.update_mini_mode_text();
return false;
}

View file

@ -48,7 +48,8 @@ pub fn deinit(self: *Self) void {
self.allocator.destroy(self);
}
pub fn receive(_: *Self, _: tp.pid_ref, _: tp.message) error{Exit}!bool {
pub fn receive(self: *Self, _: tp.pid_ref, _: tp.message) error{Exit}!bool {
self.update_mini_mode_text();
return false;
}