do not query follow/recommends when no cookie
This commit is contained in:
@ -521,15 +521,7 @@ namespace Pixiview.Illust
|
|||||||
|
|
||||||
#region - Illust Tasks -
|
#region - Illust Tasks -
|
||||||
|
|
||||||
protected void DoLoadIllusts(bool force = false, bool bottom = false)
|
private async void RedirectFailed()
|
||||||
{
|
|
||||||
#if DEBUG
|
|
||||||
App.DebugPrint($"start loading data, force: {force}");
|
|
||||||
#endif
|
|
||||||
illustData = DoLoadIllustData(force);
|
|
||||||
if (illustData == null)
|
|
||||||
{
|
|
||||||
MainThread.BeginInvokeOnMainThread(async () =>
|
|
||||||
{
|
{
|
||||||
if (!IsRedirectLogin)
|
if (!IsRedirectLogin)
|
||||||
{
|
{
|
||||||
@ -568,10 +560,26 @@ namespace Pixiview.Illust
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
//App.DebugError("illusts.load", "failed to load illusts data.");
|
|
||||||
IsLoading = false;
|
IsLoading = false;
|
||||||
IsBottomLoading = false;
|
IsBottomLoading = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void DoLoadIllusts(bool force = false, bool bottom = false)
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
App.DebugPrint($"start loading data, force: {force}");
|
||||||
|
#endif
|
||||||
|
if (force && string.IsNullOrEmpty(Configs.Cookie))
|
||||||
|
{
|
||||||
|
MainThread.BeginInvokeOnMainThread(RedirectFailed);
|
||||||
|
App.DebugPrint($"no cookie found");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
illustData = DoLoadIllustData(force);
|
||||||
|
if (illustData == null)
|
||||||
|
{
|
||||||
|
MainThread.BeginInvokeOnMainThread(RedirectFailed);
|
||||||
|
//App.DebugError("illusts.load", "failed to load illusts data.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (force && IsFavoriteVisible)
|
if (force && IsFavoriteVisible)
|
||||||
|
Reference in New Issue
Block a user