mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix windows title may become empty
This commit is contained in:
@@ -323,7 +323,8 @@ void setCurrentTitle(String title, int primaryColor,
|
|||||||
if (!isPrefix && includePrefix && _prefix != null) {
|
if (!isPrefix && includePrefix && _prefix != null) {
|
||||||
title = "$_prefix - $title";
|
title = "$_prefix - $title";
|
||||||
}
|
}
|
||||||
if (usePrefix && _prefix != null) {
|
if (usePrefix) {
|
||||||
|
if (_prefix == null) return;
|
||||||
title = _prefix!;
|
title = _prefix!;
|
||||||
}
|
}
|
||||||
if (_currentTitle != null && title == _currentTitle) return;
|
if (_currentTitle != null && title == _currentTitle) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user