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