1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Fixes #10172: Fix trash folder sometimes has wrong icon (#10173)

This commit is contained in:
Henry Heino 2024-03-20 18:09:01 -07:00 committed by GitHub
parent 55d72a8f68
commit 382f0d8218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,10 +372,10 @@ const SideMenuContentComponent = (props: Props) => {
const renderFolderIcon = (folderId: string, theme: any, folderIcon: FolderIcon) => {
if (!folderIcon) {
if (alwaysShowFolderIcons) {
return <Icon name="folder-outline" style={styles_.emptyFolderIcon} />;
} else if (folderId === getTrashFolderId()) {
if (folderId === getTrashFolderId()) {
folderIcon = getTrashFolderIcon(FolderIconType.Emoji);
} else if (alwaysShowFolderIcons) {
return <Icon name="folder-outline" style={styles_.emptyFolderIcon} />;
} else {
return null;
}