Skip to content

Commit 182cd47

Browse files
mihaicm93Mihaistoat-ci
committed
feat: start Stoat in tray on startup (stoatchat#802)
* feat: start Stoat in tray on startup Signed-off-by: Mihai <cristian@mihaimuresan.com> Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com> * chore: generate i18n catalog Signed-off-by: Mihai <cristian@mihaimuresan.com> Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com> * chore: generate i18n catalog Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com> --------- Signed-off-by: Mihai <cristian@mihaimuresan.com> Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com> Co-authored-by: Mihai <cristian@mihaimuresan.com> Co-authored-by: Stoat CI <stoat-ci@users.noreply.github.com> Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com>
1 parent fd373b2 commit 182cd47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+562
-0
lines changed

packages/client/components/app/interface/settings/user/Native.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare type DesktopConfig = {
99
firstLaunch: boolean;
1010
customFrame: boolean;
1111
minimiseToTray: boolean;
12+
startMinimisedToTray: boolean;
1213
spellchecker: boolean;
1314
hardwareAcceleration: boolean;
1415
discordRpc: boolean;
@@ -66,6 +67,8 @@ export default function Native() {
6667

6768
const toggles: Partial<Record<keyof DesktopConfig, () => void>> = {
6869
minimiseToTray: () => set({ minimiseToTray: !config().minimiseToTray }),
70+
startMinimisedToTray: () =>
71+
set({ startMinimisedToTray: !config().startMinimisedToTray }),
6972
customFrame: () => set({ customFrame: !config().customFrame }),
7073
discordRpc: () => set({ discordRpc: !config().discordRpc }),
7174
spellchecker: () => set({ spellchecker: !config().spellchecker }),
@@ -119,6 +122,13 @@ export default function Native() {
119122
>
120123
<Trans>Start with Computer</Trans>
121124
</CategoryButton>
125+
{autostart() &&
126+
CheckboxButton(
127+
"startMinimisedToTray",
128+
"minimize",
129+
t`Start Minimised to Tray`,
130+
t`Stoat will start in the system tray.`,
131+
)}
122132
{CheckboxButton(
123133
"minimiseToTray",
124134
"cancel_presentation",

packages/client/components/i18n/catalogs/ar/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "تحدث"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "أرسل إلينا اقتراحاتك لإضافة الميزات"

packages/client/components/i18n/catalogs/as/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr ""
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr ""

packages/client/components/i18n/catalogs/az/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr ""
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "Xüsusiyyət təklifi göndərin"

packages/client/components/i18n/catalogs/be/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "Гаварыць"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "Адправіць прапанову"

packages/client/components/i18n/catalogs/bg/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "говори"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "Предложете нова функция"

packages/client/components/i18n/catalogs/bn/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "বলুন"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "ফিচার সম্পর্কে আপনার মতামত জানান"

packages/client/components/i18n/catalogs/bottom/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "💖✨✨✨,,,👉👈💖💖✨,,👉👈💖💖,👉👈💖✨✨
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "💖✨✨✨,,,👉👈💖💖✨🥺,,👉👈💖✨✨✨✨🥺,,,👉👈💖💖🥺,,,,👉👈💖💖🥺👉👈💖💖✨🥺,👉👈✨✨✨,,👉👈💖💖,,👉👈💖💖,👉👈💖✨✨✨✨🥺,,👉👈💖💖✨🥺,👉👈💖💖✨🥺,,👉👈💖💖✨,,,,👉👈💖💖,👉👈✨✨✨,,👉👈💖💖✨🥺👉👈💖💖✨🥺,,👉👈💖💖,,,👉👈💖💖,,,👉👈💖💖,👉👈💖💖✨🥺👉👈💖💖✨🥺,👉👈💖💖🥺👉👈💖💖✨,👉👈💖💖✨👉👈"

packages/client/components/i18n/catalogs/br/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "Komz"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "Kinnig un aezamant"

packages/client/components/i18n/catalogs/ca/messages.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,10 @@ msgstr "Parlar"
25322532
msgid "Spellchecker"
25332533
msgstr ""
25342534

2535+
#: components/app/interface/settings/user/Native.tsx
2536+
msgid "Start Minimised to Tray"
2537+
msgstr ""
2538+
25352539
#: components/ui/components/features/voice/callCard/VoiceCallCardPreview.tsx
25362540
msgid "Start the call"
25372541
msgstr ""
@@ -2564,6 +2568,10 @@ msgstr ""
25642568
msgid "Stoat is one of the best ways to stay connected with your friends and community, anywhere, anytime."
25652569
msgstr ""
25662570

2571+
#: components/app/interface/settings/user/Native.tsx
2572+
msgid "Stoat will start in the system tray."
2573+
msgstr ""
2574+
25672575
#: components/app/interface/settings/user/Feedback.tsx
25682576
msgid "Submit feature suggestion"
25692577
msgstr "Proposa una funcionalitat"

0 commit comments

Comments
 (0)