Fix rootViewController by using appDelegate.window instead of keyWindow.
Merge remote-tracking branch 'origin/fix-78' into prefersDarkTheme

Fix rootViewController by using appDelegate.window instead of keyWindow.