refactor: trigger project_manager startup on tui init
This commit is contained in:
parent
ba470610be
commit
d53a70736b
2 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,10 @@ fn create() SpawnError!Self {
|
||||||
return .{ .pid = tp.env.get().proc(module_name) };
|
return .{ .pid = tp.env.get().proc(module_name) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn start() SpawnError!void {
|
||||||
|
_ = try get();
|
||||||
|
}
|
||||||
|
|
||||||
pub fn shutdown() void {
|
pub fn shutdown() void {
|
||||||
const pid = tp.env.get().proc(module_name);
|
const pid = tp.env.get().proc(module_name);
|
||||||
if (pid.expired()) {
|
if (pid.expired()) {
|
||||||
|
|
|
@ -133,6 +133,8 @@ fn init(allocator: Allocator) !*Self {
|
||||||
self.rdr.dispatch_event = dispatch_event;
|
self.rdr.dispatch_event = dispatch_event;
|
||||||
try self.rdr.run();
|
try self.rdr.run();
|
||||||
|
|
||||||
|
try project_manager.start();
|
||||||
|
|
||||||
try frame_clock.start();
|
try frame_clock.start();
|
||||||
try self.commands.init(self);
|
try self.commands.init(self);
|
||||||
errdefer self.deinit();
|
errdefer self.deinit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue