Skip to content

Commit

Permalink
fix: appLauncher switch, message text (notices)
Browse files Browse the repository at this point in the history
  • Loading branch information
WahaWaher committed Jul 13, 2021
1 parent fe36316 commit ec15850
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions main/src/appLauncher.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import AutoLaunch from 'auto-launch';
import { getProfileSettings } from '@/stores/appStore';
import { pkg } from '@/utils/pkgUtils';
import AutoLaunch from 'auto-launch';
import isDev from 'electron-is-dev';

const getLaunchAppName = () => `WOT Monitor${isDev ? ' (dev)': ''}`;

const appLauncher = new AutoLaunch({
name: pkg?.productName || '',
name: getLaunchAppName(),
});

/* @ts-ignore */
appLauncher.opts.appName = pkg?.productName;
appLauncher.opts.appName = getLaunchAppName();

const setAppLauncher = async () => {
const { openOnSystemStartUp } = getProfileSettings().common;
Expand All @@ -23,3 +25,4 @@ const setAppLauncher = async () => {
};

export { appLauncher, setAppLauncher };

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wot-monitor",
"productName": "WOT Monitor",
"version": "1.1.3",
"version": "1.1.5",
"description": "Настольное приложение для Windows, позволяющее отслеживать активность клановых резервов в игре World of Tanks",
"author": {
"name": "WahaWaher",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/special/AppNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const AppNotifications = () => {
)}
{!allNoticesCount && (
<Alert shape="compact" center>
Сообщения не найдено
Сообщения не найдены
</Alert>
)}
{allNoticesCount > 0 && !filteredNoticesCount && (
Expand Down

0 comments on commit ec15850

Please sign in to comment.