Make StreamingPreferences a proper singleton
This removes the need for several hacks in SettingsView to force updates and improves performance by not reloading preferences all over the place.
This commit is contained in:
parent
ebe270bec5
commit
d1ccd19fcc
9 changed files with 68 additions and 56 deletions
|
|
@ -541,7 +541,7 @@ bool Session::populateDecoderProperties(SDL_Window* window)
|
|||
}
|
||||
|
||||
Session::Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences)
|
||||
: m_Preferences(preferences ? preferences : new StreamingPreferences(this)),
|
||||
: m_Preferences(preferences ? preferences : StreamingPreferences::get()),
|
||||
m_IsFullScreen(m_Preferences->windowMode != StreamingPreferences::WM_WINDOWED || !WMUtils::isRunningDesktopEnvironment()),
|
||||
m_Computer(computer),
|
||||
m_App(app),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue