Skip to content

Commit ef47371

Browse files
committed
Apply restoration preferences
1 parent bd791a0 commit ef47371

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devdocs-macos/DocumentationWindows.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ class DocumentationWindows: NSObject {
4444
}
4545

4646
func restore() {
47+
if !GeneralPreferences.shouldRestoreDocs() {
48+
newWindow()
49+
return
50+
}
4751
if let urls = Storage.getLocations() {
4852
urls.filter { url -> Bool in
4953
if let host = url.host {

0 commit comments

Comments
 (0)