refactor: deduplicate toggle_panel_view
By allowing any panel to accept arguments.
This commit is contained in:
parent
c4f6b6c945
commit
2f5d4ded3c
8 changed files with 21 additions and 36 deletions
|
|
@ -57,7 +57,7 @@ const Entry = struct {
|
|||
pos_type: editor.PosType,
|
||||
};
|
||||
|
||||
pub fn create(allocator: Allocator, parent: Plane) !Widget {
|
||||
pub fn create(allocator: Allocator, parent: Plane, _: command.Context) !Widget {
|
||||
const self = try allocator.create(Self);
|
||||
errdefer allocator.destroy(self);
|
||||
self.* = .{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue