mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 11:25:38 +00:00
Fixed auto-night mode triggering when the main theme is custom
This commit is contained in:
parent
716049c9ef
commit
a7ba693f8b
@ -330,17 +330,6 @@ private struct AutomaticThemeSwitchParameters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func automaticThemeShouldSwitchNow(_ parameters: AutomaticThemeSwitchParameters, currentTheme: PresentationThemeReference) -> Bool {
|
private func automaticThemeShouldSwitchNow(_ parameters: AutomaticThemeSwitchParameters, currentTheme: PresentationThemeReference) -> Bool {
|
||||||
switch currentTheme {
|
|
||||||
case let .builtin(builtin):
|
|
||||||
switch builtin {
|
|
||||||
case .nightAccent, .night:
|
|
||||||
return false
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
switch parameters.trigger {
|
switch parameters.trigger {
|
||||||
case .none:
|
case .none:
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user