feat: toggle logview off before filelist_view
This commit is contained in:
parent
36a24d84e3
commit
5727f6a4da
1 changed files with 3 additions and 9 deletions
|
@ -324,7 +324,9 @@ const cmds = struct {
|
|||
}
|
||||
|
||||
pub fn toggle_panel(self: *Self, _: Ctx) Result {
|
||||
if (self.is_panel_view_showing(@import("filelist_view.zig")))
|
||||
if (self.is_panel_view_showing(@import("logview.zig")))
|
||||
_ = try self.toggle_panel_view(@import("logview.zig"), false)
|
||||
else if (self.is_panel_view_showing(@import("filelist_view.zig")))
|
||||
_ = try self.toggle_panel_view(@import("filelist_view.zig"), false)
|
||||
else
|
||||
_ = try self.toggle_panel_view(@import("logview.zig"), false);
|
||||
|
@ -350,14 +352,6 @@ const cmds = struct {
|
|||
_ = try self.toggle_panel_view(@import("inspector_view.zig"), true);
|
||||
}
|
||||
|
||||
pub fn toggle_filelist_view(self: *Self, _: Ctx) Result {
|
||||
_ = try self.toggle_panel_view(@import("filelist_view.zig"), false);
|
||||
}
|
||||
|
||||
pub fn show_filelist_view(self: *Self, _: Ctx) Result {
|
||||
_ = try self.toggle_panel_view(@import("filelist_view.zig"), true);
|
||||
}
|
||||
|
||||
pub fn jump_back(self: *Self, _: Ctx) Result {
|
||||
try self.location_history.back(location_jump);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue