Fix a bug where it says "(Failed to load)" when switching profiles
This commit is contained in:
1 parent
891a5f8405
commit
1eeaced04b
3 files changed
+13
-5
No files matched your search
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- A bug where it says "(Failed to load)" when switching profiles
|
||||
|
||||
## [0.40.0] - 2025-06-01
|
||||
|
||||
### Added
|
||||
|
||||
@@ -92,11 +92,13 @@ function VideoRowListRowContentTask(input as object) as object
|
||||
feedSources[feedSourcesIndex] = feedSource
|
||||
feedContentNode.feedSources = feedSources
|
||||
|
||||
if feedContentNode.title.instr(" (Failed to load)") = -1
|
||||
feedContentNode.title += " (Failed to load)"
|
||||
isCancelled = response.cancelled = true
|
||||
if not isCancelled
|
||||
if feedContentNode.title.instr(" (Failed to load)") = -1
|
||||
feedContentNode.title += " (Failed to load)"
|
||||
end if
|
||||
end if
|
||||
|
||||
isCancelled = response.cancelled = true
|
||||
HandleFeedLoadErrorDialog(response.error, isCancelled, rowList)
|
||||
continue while
|
||||
end if
|
||||
|
||||
@@ -719,10 +719,10 @@ namespace HttpClient
|
||||
else
|
||||
if m.request._sent <> true
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestNotSent)
|
||||
else if m.IsTimedOut()
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestTimedOut)
|
||||
else if m.IsCancelled()
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestCancelled)
|
||||
else if m.IsTimedOut()
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestTimedOut)
|
||||
else if type(m.event) = "roUrlEvent"
|
||||
m._errorMessage = `${Tr(Locale.HttpClient.Reason)}:${m.event.GetFailureReason() }\nStatusCode: ${m.StatusCode()}\nRequestId: ${m.event.GetSourceIdentity()}`
|
||||
if includeBody
|
||||
|
||||
Reference in new issue
Block a user