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,
|
.theme = theme,
|
||||||
.no_sleep = tp.env.get().is("no-sleep"),
|
.no_sleep = tp.env.get().is("no-sleep"),
|
||||||
};
|
};
|
||||||
try self.commands.init(self);
|
|
||||||
errdefer self.deinit();
|
|
||||||
instance_ = self;
|
instance_ = self;
|
||||||
defer instance_ = null;
|
defer instance_ = null;
|
||||||
|
try self.commands.init(self);
|
||||||
|
errdefer self.deinit();
|
||||||
try self.listen_sigwinch();
|
try self.listen_sigwinch();
|
||||||
self.mainview = try mainview.create(a, n);
|
self.mainview = try mainview.create(a, n);
|
||||||
try self.initUI();
|
try self.initUI();
|
||||||
|
|
Loading…
Add table
Reference in a new issue