feat: refactor1

This commit is contained in:
2025-05-23 15:30:48 +02:00
parent 33d8306f22
commit 0cb9387492
3 changed files with 8 additions and 8 deletions

View File

@@ -229,10 +229,8 @@ pub fn main() !void {
defer allocator.free(start_full_name.path);
var tab1 = try allocator.create(Tab);
defer allocator.destroy(tab1);
tab1.init(&pool, &rootProvider, allocator);
defer tab1.deinit();
try tab1.setCurrentLocation(start_full_name);
@@ -261,7 +259,8 @@ pub fn main() !void {
};
var appState: AppState = AppState.init(allocator);
appState.currentTab = tab1;
try appState.addTab(tab1);
try appState.setCurrentTab(tab1);
const model = try allocator.create(Model);
defer allocator.destroy(model);