Skip to content

Commit

Permalink
Fix library view mode stuck on blank slate
Browse files Browse the repository at this point in the history
Could happen on builds after bf70d16 if a build predating 86a3708 was quit on blank slate beforehand.
  • Loading branch information
J-rg committed Nov 27, 2020
1 parent bb3414d commit 64eb81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEmu/OEGameCollectionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ - (void)viewDidLoad

// Restore grid/list view mode.
OECollectionViewControllerViewTag tag = [[NSUserDefaults standardUserDefaults] integerForKey:OELastCollectionViewKey];
self.selectedViewTag = tag;
self.selectedViewTag = tag != -1 ? tag : 0;

[[self listView] setDraggingSourceOperationMask:NSDragOperationCopy forLocal:NO];
}
Expand Down

0 comments on commit 64eb81a

Please sign in to comment.