We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2026b61 commit 067f675Copy full SHA for 067f675
src/components/Main.tsx
@@ -172,10 +172,6 @@ const Main = () => {
172
setSearch(e.target.value);
173
};
174
175
- ipcRenderer.on('hotkey-pressed', () => {
176
- history.push('/auto', { auto: true });
177
- });
178
-
179
useEffect(() => {
180
if (search.trim()) {
181
setRoutes(
@@ -223,6 +219,10 @@ const Main = () => {
223
219
return null;
224
220
})
225
221
.catch(console.error);
222
+
+ ipcRenderer.on('hotkey-pressed', () => {
+ history.push('/auto', { auto: true });
+ });
226
}, []);
227
228
return (
0 commit comments