refactor: deduplicate toggle_panel_view

By allowing any panel to accept arguments.
This commit is contained in:
CJ van den Berg 2026-03-01 21:50:37 +01:00
parent c4f6b6c945
commit 2f5d4ded3c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
8 changed files with 21 additions and 36 deletions

View file

@ -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.* = .{