mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
Limit normal search fallback to 404 respnse
Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com>
This commit is contained in:
parent
364968a6b4
commit
28c42d04b6
3 changed files with 10 additions and 4 deletions
|
|
@ -147,7 +147,9 @@ void ResourceModel::search()
|
|||
callbacks.on_fail = [this](QString reason, int network_error_code) {
|
||||
if (!s_running_models.constFind(this).value())
|
||||
return;
|
||||
m_search_state = SearchState::ResetRequested;;
|
||||
if (network_error_code == 404) {
|
||||
m_search_state = SearchState::ResetRequested;
|
||||
}
|
||||
searchRequestFailed(reason, network_error_code);
|
||||
};
|
||||
callbacks.on_abort = [this] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue