mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-15 16:33:02 -03:00
feat: truncate game title on tray
This commit is contained in:
@@ -49,9 +49,7 @@ export class PythonInstance {
|
||||
public static killTorrent() {
|
||||
if (this.pythonProcess) {
|
||||
logger.log("killing torrent in python process");
|
||||
this.rpc
|
||||
.post("/action", { action: "kill-torrent" })
|
||||
.catch((err) => logger.error(err));
|
||||
this.rpc.post("/action", { action: "kill-torrent" });
|
||||
this.downloadingGameId = -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user