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
+11
-3
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/),
|
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).
|
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
|
## [0.40.0] - 2025-06-01
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -92,11 +92,13 @@ function VideoRowListRowContentTask(input as object) as object
|
|||||||
feedSources[feedSourcesIndex] = feedSource
|
feedSources[feedSourcesIndex] = feedSource
|
||||||
feedContentNode.feedSources = feedSources
|
feedContentNode.feedSources = feedSources
|
||||||
|
|
||||||
|
isCancelled = response.cancelled = true
|
||||||
|
if not isCancelled
|
||||||
if feedContentNode.title.instr(" (Failed to load)") = -1
|
if feedContentNode.title.instr(" (Failed to load)") = -1
|
||||||
feedContentNode.title += " (Failed to load)"
|
feedContentNode.title += " (Failed to load)"
|
||||||
end if
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
isCancelled = response.cancelled = true
|
|
||||||
HandleFeedLoadErrorDialog(response.error, isCancelled, rowList)
|
HandleFeedLoadErrorDialog(response.error, isCancelled, rowList)
|
||||||
continue while
|
continue while
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -719,10 +719,10 @@ namespace HttpClient
|
|||||||
else
|
else
|
||||||
if m.request._sent <> true
|
if m.request._sent <> true
|
||||||
m._errorMessage = Tr(Locale.HttpClient.RequestNotSent)
|
m._errorMessage = Tr(Locale.HttpClient.RequestNotSent)
|
||||||
else if m.IsTimedOut()
|
|
||||||
m._errorMessage = Tr(Locale.HttpClient.RequestTimedOut)
|
|
||||||
else if m.IsCancelled()
|
else if m.IsCancelled()
|
||||||
m._errorMessage = Tr(Locale.HttpClient.RequestCancelled)
|
m._errorMessage = Tr(Locale.HttpClient.RequestCancelled)
|
||||||
|
else if m.IsTimedOut()
|
||||||
|
m._errorMessage = Tr(Locale.HttpClient.RequestTimedOut)
|
||||||
else if type(m.event) = "roUrlEvent"
|
else if type(m.event) = "roUrlEvent"
|
||||||
m._errorMessage = `${Tr(Locale.HttpClient.Reason)}:${m.event.GetFailureReason() }\nStatusCode: ${m.StatusCode()}\nRequestId: ${m.event.GetSourceIdentity()}`
|
m._errorMessage = `${Tr(Locale.HttpClient.Reason)}:${m.event.GetFailureReason() }\nStatusCode: ${m.StatusCode()}\nRequestId: ${m.event.GetSourceIdentity()}`
|
||||||
if includeBody
|
if includeBody
|
||||||
|
|||||||
Reference in new issue
Block a user