dont override container of existing tabs
This commit is contained in:
@@ -127,14 +127,7 @@ class TabDao extends DatabaseAccessor<TabDatabase> with $TabDaoMixin {
|
|||||||
containerId: containerId,
|
containerId: containerId,
|
||||||
orderKey: currentOrderKey,
|
orderKey: currentOrderKey,
|
||||||
),
|
),
|
||||||
onConflict: DoUpdate(
|
mode: InsertMode.insertOrIgnore,
|
||||||
(old) => TabCompanion(
|
|
||||||
parentId: parentId,
|
|
||||||
containerId: containerId,
|
|
||||||
orderKey: Value.absentIfNull(orderKey.value),
|
|
||||||
),
|
|
||||||
where: (old) => old.containerId.isNull(),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return tabId;
|
return tabId;
|
||||||
|
|||||||
Reference in New Issue
Block a user