mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
Fix workspace shortcut displays incorrectly (#5)
This commit is contained in:
parent
2de01ddd11
commit
af8b1ea67b
2 changed files with 7 additions and 2 deletions
|
|
@ -129,7 +129,10 @@ const setWorkspacePicture = (id, sourcePicturePath) => {
|
||||||
pictureId,
|
pictureId,
|
||||||
picturePath: destPicturePath,
|
picturePath: destPicturePath,
|
||||||
});
|
});
|
||||||
|
if (currentPicturePath) {
|
||||||
return fsExtra.remove(currentPicturePath);
|
return fsExtra.remove(currentPicturePath);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
})
|
})
|
||||||
.catch(console.log);
|
.catch(console.log);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,9 @@ const WorkspaceSelector = ({
|
||||||
{badgeCount > 9 ? '*' : badgeCount}
|
{badgeCount > 9 ? '*' : badgeCount}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{(id === 'add' || order < 9) && (
|
||||||
<p className={classes.shortcutText}>{id === 'add' ? 'Add' : `⌘ + ${order + 1}`}</p>
|
<p className={classes.shortcutText}>{id === 'add' ? 'Add' : `⌘ + ${order + 1}`}</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue