2 * Copyright (C) 2022 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "GUIViewStateFavourites.h"
11 #include "FileItemList.h"
12 #include "guilib/WindowIDs.h"
14 CGUIViewStateFavourites::CGUIViewStateFavourites(const CFileItemList
& items
) : CGUIViewState(items
)
16 AddSortMethod(SortByUserPreference
, 19349,
17 LABEL_MASKS("%L", "", "%L", "")); // Label, empty | Label, empty
18 AddSortMethod(SortByLabel
, 551, LABEL_MASKS("%L", "", "%L", "")); // Label, empty | Label, empty
20 SetSortMethod(SortByUserPreference
);
22 LoadViewState(items
.GetPath(), WINDOW_FAVOURITES
);
25 void CGUIViewStateFavourites::SaveViewState()
27 SaveViewToDb(m_items
.GetPath(), WINDOW_FAVOURITES
);