fix: an early panic on startup if ~/.config does not exist
This commit is contained in:
parent
10e1f04742
commit
c2b734a8f6
1 changed files with 2 additions and 2 deletions
|
@ -148,10 +148,10 @@ fn init(a: Allocator) !*Self {
|
|||
.theme = theme,
|
||||
.no_sleep = tp.env.get().is("no-sleep"),
|
||||
};
|
||||
try self.commands.init(self);
|
||||
errdefer self.deinit();
|
||||
instance_ = self;
|
||||
defer instance_ = null;
|
||||
try self.commands.init(self);
|
||||
errdefer self.deinit();
|
||||
try self.listen_sigwinch();
|
||||
self.mainview = try mainview.create(a, n);
|
||||
try self.initUI();
|
||||
|
|
Loading…
Add table
Reference in a new issue