themezer: only show latest release for nxtheme when prompting user to download nro.
This commit is contained in:
@@ -79,14 +79,14 @@ private:
|
||||
void DownloadEntries(const Entry& entry);
|
||||
|
||||
// parses the params into entry struct and calls DonwloadEntries
|
||||
bool Download(const std::string& url, const std::vector<AssetEntry>& assets = {}, const std::string& pre_install_message = {}, const std::string& post_install_message = {});
|
||||
bool Download(const std::string& url, const std::vector<AssetEntry>& assets = {}, const std::string& tag = {}, const std::string& pre_install_message = {}, const std::string& post_install_message = {});
|
||||
|
||||
// calls the above function by pushing the asset to an array.
|
||||
inline bool Download(const std::string& url, const AssetEntry& asset, const std::string& pre_install_message = {}, const std::string& post_install_message = {}) {
|
||||
inline bool Download(const std::string& url, const AssetEntry& asset, const std::string& tag = {}, const std::string& pre_install_message = {}, const std::string& post_install_message = {}) {
|
||||
std::vector<AssetEntry> assets;
|
||||
assets.emplace_back(asset);
|
||||
|
||||
return Download(url, assets, pre_install_message, post_install_message);
|
||||
return Download(url, assets, tag, pre_install_message, post_install_message);
|
||||
}
|
||||
|
||||
} // namespace sphaira::ui::menu::gh
|
||||
|
||||
Reference in New Issue
Block a user