void CGUIViewState::LoadViewState(const std::string &path, int windowID) { // get our view state from the db CViewDatabase db; if (!db.Open()) return; CViewState state; if (db.GetViewState(path, windowID, state, CServiceBroker::GetSettings().GetString(CSettings::SETTING_LOOKANDFEEL_SKIN)) || db.GetViewState(path, windowID, state, "")) { SetViewAsControl(state.m_viewMode); SetSortMethod(state.m_sortDescription); } }
void CGUIViewState::LoadViewState(const std::string &path, int windowID) { // get our view state from the db CViewDatabase db; if (!db.Open()) return; CViewState state; if (db.GetViewState(path, windowID, state, CSettings::Get().GetString("lookandfeel.skin")) || db.GetViewState(path, windowID, state, "")) { SetViewAsControl(state.m_viewMode); SetSortMethod(state.m_sortDescription); } }
void CGUIViewState::LoadViewState(const CStdString &path, int windowID) { // get our view state from the db CViewDatabase db; if (db.Open()) { CViewState state; if (db.GetViewState(path, windowID, state, g_guiSettings.GetString("lookandfeel.skin")) || db.GetViewState(path, windowID, state, "")) { SetViewAsControl(state.m_viewMode); SetSortMethod(state.m_sortMethod); SetSortOrder(state.m_sortOrder); } db.Close(); } }