Skip to content

Commit

Permalink
remove version check
Browse files Browse the repository at this point in the history
  • Loading branch information
violetadev committed Sep 24, 2024
1 parent a192e05 commit b600a86
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 101 deletions.
4 changes: 0 additions & 4 deletions desktop-app/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ const createWindow = async () => {
ipcMain.on('stop-watcher', async () => {
await stopWatchFiles();
});

ipcMain.handle('get-app-version', () => {
return app.getVersion();
});
};

app.on('open-url', async (event, url) => {
Expand Down
15 changes: 1 addition & 14 deletions desktop-app/src/renderer/components/Previewer/Device/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon } from '@iconify/react';
import { useEffect, useState } from 'react';
import { useState } from 'react';
import Button from 'renderer/components/Button';
import useSound from 'use-sound';
import { ScreenshotArgs, ScreenshotResult } from 'main/screenshot';
Expand All @@ -8,9 +8,6 @@ import WebPage from 'main/screenshot/webpage';

import screenshotSfx from 'renderer/assets/sfx/screenshot.mp3';
import { updateWebViewHeightAndScale } from 'common/webViewUtils';
import useCheckVersion from 'renderer/components/useCheckVersion/useCheckVersion';
import { useDispatch } from 'react-redux';
import { setNotifications } from 'renderer/store/features/renderer';
import { ColorBlindnessTools } from './ColorBlindnessTools';

interface Props {
Expand Down Expand Up @@ -48,16 +45,6 @@ const Toolbar = ({
useState<boolean>(false);
const [rotated, setRotated] = useState<boolean>(false);

const dispatch = useDispatch();

const { isNewVersionAvailable } = useCheckVersion();

useEffect(() => {
if (isNewVersionAvailable) {
dispatch(setNotifications(newVersionText));
}
}, [dispatch, isNewVersionAvailable]);

const refreshView = () => {
if (webview) {
webview.reload();
Expand Down

This file was deleted.

0 comments on commit b600a86

Please sign in to comment.