feat: updating play label on hero panel

This commit is contained in:
Hydra 2024-04-18 22:26:17 +01:00
parent f1bdec484e
commit 7d675f6acf
40 changed files with 2049 additions and 745 deletions

View file

@ -104,7 +104,9 @@ export function HeroPanel({
window.electron
.showOpenDialog({
properties: ["openFile"],
filters: [{ name: "Game executable (.exe)", extensions: ["exe"] }],
filters: [
{ name: "Game executable (.exe)", extensions: ["exe", "app"] },
],
})
.then(({ filePaths }) => {
if (filePaths && filePaths.length > 0) {
@ -209,11 +211,15 @@ export function HeroPanel({
})}
</p>
<p>
{t("last_time_played", {
period: lastTimePlayed,
})}
</p>
{isGamePlaying ? (
<p>{t("playing_now")}</p>
) : (
<p>
{t("last_time_played", {
period: lastTimePlayed,
})}
</p>
)}
</>
);
}