feat: truncate game title on tray

This commit is contained in:
Zamitto 2024-07-17 21:05:31 -03:00
parent 8c0c3e617b
commit 3d8c63bc40
2 changed files with 2 additions and 4 deletions

View file

@ -158,7 +158,7 @@ export class WindowManager {
const recentlyPlayedGames: Array<MenuItemConstructorOptions | MenuItem> =
games.map(({ title, executablePath }) => ({
label: title,
label: title.length > 15 ? `${title.slice(0, 15)}` : title,
type: "normal",
click: async () => {
if (!executablePath) return;