fix: update mini mode state on mode init
This commit is contained in:
parent
4f7c76a46a
commit
d06ebd0dd5
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue