feat: remove precurrentitemsunload
This commit is contained in:
@@ -4,7 +4,6 @@ pub const Tab = struct {
|
||||
currentItems: locked(?std.ArrayList(Arc(*Item))),
|
||||
currentLocationChanged: Observable(?*Container),
|
||||
currentItemsChanged: bool = false,
|
||||
preCurrentItemsUnload: Observable(*Tab),
|
||||
threadPool: *std.Thread.Pool,
|
||||
rootProvider: *RootProvider,
|
||||
|
||||
@@ -21,7 +20,6 @@ pub const Tab = struct {
|
||||
.currentLocation = null,
|
||||
.threadPool = threadPool,
|
||||
.rootProvider = rootProvider,
|
||||
.preCurrentItemsUnload = Observable(*Tab).init(allocator),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -60,8 +58,6 @@ pub const Tab = struct {
|
||||
self.currentItems.mutex.lock();
|
||||
defer self.currentItems.mutex.unlock();
|
||||
|
||||
self.preCurrentItemsUnload.notify(self);
|
||||
|
||||
const data = self.currentItems.data;
|
||||
self.currentItems.data = null;
|
||||
if (data) |currentItems| {
|
||||
|
||||
Reference in New Issue
Block a user