feat: refactor1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user