Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixed clearing of all tabs and data when switching to private-browsin…
Browse files Browse the repository at this point in the history
…g-only.

Fixes #580
  • Loading branch information
Brandon-T committed Nov 19, 2019
1 parent a1fadbd commit 58369e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Data/models/TabMO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ public final class TabMO: NSManagedObject, CRUD {
deleteAll(context: .new(inMemory: false))
}

public class func deleteAllNormalTabs() {
deleteAll(predicate: NSPredicate(format: "isPrivate != true"), context: .new(inMemory: false))
}

public class func deleteAllPrivateTabs() {
deleteAll(predicate: NSPredicate(format: "isPrivate == true"), context: .new(inMemory: false))
}
Expand Down

0 comments on commit 58369e2

Please sign in to comment.