Skip to content

Commit

Permalink
feat: add link to DFU mode manual page (#80)
Browse files Browse the repository at this point in the history
* fix: hide unused menu bar on Linux and Windows builds
Menu bar is populated by default on Windows and Linux Electron builds even when not used.

This makes it so it is auto-hidden on dev builds (so it's still accessible if wanted), but fully disabled on "production" builds.

* feat: ensure user knows how to DFU mode flash
Fixes #52
  • Loading branch information
pfeerick authored Apr 25, 2024
1 parent c30d71f commit 028537a
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions locales/be/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"Flashing done": "Перапрашыўка завершана",
"Flashing EdgeTX": "Прашыўка EdgeTX",
"Go back": "Назад",
"How to access DFU for your handset": "Як атрымаць доступ да DFU для вашага апарата",
"Include pre-releases": "Уключаць прэ-рэлізы",
"Loading commits...": "Загрузка коммітаў...",
"Loading pull requests...": "Загрузка запытаў на абнаўленне...",
Expand Down
1 change: 1 addition & 0 deletions locales/cs/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Zapisování dokončeno",
"Flashing EdgeTX": "Zapisování EdgeTX",
"Go back": "Zpět",
"How to access DFU for your handset": "Jak přistupovat k DFU pro váš přístroj",
"In queue": "In queue",
"Include pre-releases": "Include pre-releases",
"Loading commits...": "Stahuji commity...",
Expand Down
1 change: 1 addition & 0 deletions locales/da/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Brænding klar",
"Flashing EdgeTX": "Brænder EdgeTX image",
"Go back": "Tilbage",
"How to access DFU for your handset": "Sådan får du adgang til DFU for din håndholdte enhed",
"In queue": "In queue",
"Include pre-releases": "Medtag udviklings versioner",
"Loading commits...": "Indlæser git commits...",
Expand Down
1 change: 1 addition & 0 deletions locales/de/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Flashen fertig",
"Flashing EdgeTX": "Flashe EdgeTX",
"Go back": "Zurück",
"How to access DFU for your handset": "So greifen Sie auf den DFU-Modus für Ihr Gerät zu",
"In queue": "In queue",
"Include pre-releases": "Vorabversionen einbeziehen",
"Loading commits...": "Commits werden geladen...",
Expand Down
1 change: 1 addition & 0 deletions locales/es/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Flashing done",
"Flashing EdgeTX": "Flashing EdgeTX",
"Go back": "Go back",
"How to access DFU for your handset": "Cómo acceder al modo DFU para tu dispositivo",
"In queue": "In queue",
"Include pre-releases": "Include pre-releases",
"Loading commits...": "Loading commits...",
Expand Down
1 change: 1 addition & 0 deletions locales/fr/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"Flashing done": "Flashing done",
"Flashing EdgeTX": "Flashing EdgeTX",
"Go back": "Go back",
"How to access DFU for your handset": "Comment accéder au mode DFU pour votre appareil",
"Include pre-releases": "Include pre-releases",
"Loading commits...": "Loading commits...",
"Loading pull requests...": "Loading pull requests...",
Expand Down
1 change: 1 addition & 0 deletions locales/it/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Flash completato",
"Flashing EdgeTX": "Flash di EdgeTX",
"Go back": "Torna",
"How to access DFU for your handset": "Come accedere alla DFU per il tuo dispositivo",
"In queue": "In queue",
"Include pre-releases": "Includi le pre-releases",
"Loading commits...": "Carico i commit...",
Expand Down
1 change: 1 addition & 0 deletions locales/ru/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Перепрошивка завершена",
"Flashing EdgeTX": "Прошивка EdgeTX",
"Go back": "Назад",
"How to access DFU for your handset": "Как получить доступ к DFU для вашего аппарата",
"In queue": "In queue",
"Include pre-releases": "Включать пре-релизы",
"Loading commits...": "Загрузка коммитов...",
Expand Down
1 change: 1 addition & 0 deletions locales/sv/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "Flashning klar",
"Flashing EdgeTX": "Flashar EdgeTX",
"Go back": "Tillbaka",
"How to access DFU for your handset": "Hur man får tillgång till DFU för din handenhet",
"In queue": "I kö",
"Include pre-releases": "Inkludera utvecklingsversioner",
"Loading commits...": "Läser in git commits...",
Expand Down
1 change: 1 addition & 0 deletions locales/zh/flashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Flashing done": "刷写完成",
"Flashing EdgeTX": "正在刷写 EdgeTX",
"Go back": "返回",
"How to access DFU for your handset": "如何为您的手持设备访问DFU",
"In queue": "In queue",
"Include pre-releases": "包括预发布版本",
"Loading commits...": "正在加载 commits...",
Expand Down
20 changes: 16 additions & 4 deletions src/renderer/components/devices/DeviceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { gql, useMutation, useQuery } from "@apollo/client";
import { Button, Card, Empty, Typography } from "antd";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { Trans, useTranslation } from "react-i18next";
import useIsMobile from "renderer/hooks/useIsMobile";
import { Centered } from "renderer/shared/layouts";
import styled from "styled-components";
Expand Down Expand Up @@ -152,9 +152,21 @@ const DeviceSelector: React.FC<Props> = ({
/>
}
description={
variant === "electron"
? t(`No devices found`)
: t(`Add a device to get started`)
variant === "electron" ? (
t(`No devices found`)
) : (
<Trans t={t}>
Add a device to get started
<br />
<a
target="_blank"
href="https://manual.edgetx.org/edgetx-how-to/access-dfu-and-bootloader-mode"
rel="noreferrer"
>
How to access DFU for your handset
</a>
</Trans>
)
}
>
{actionButton}
Expand Down

0 comments on commit 028537a

Please sign in to comment.