Show plugin as error and give guidance for uninstall

This commit is contained in:
TrainDoctor
2022-11-13 16:31:05 -08:00
parent de42639726
commit 2955681975
+3 -2
View File
@@ -9,7 +9,7 @@ import {
staticClasses,
} from 'decky-frontend-lib';
import { FC, lazy } from 'react';
import { FaExclamationCircle, FaPlug } from 'react-icons/fa';
import { FaCog, FaExclamationCircle, FaPlug } from 'react-icons/fa';
import { DeckyState, DeckyStateContextProvider, useDeckyState } from './components/DeckyState';
import LegacyPlugin from './components/LegacyPlugin';
@@ -249,8 +249,9 @@ class PluginLoader extends Logger {
<>
Error:{' '}
<pre>
<code>{e}</code>
<code>{e instanceof Error ? e.stack : e?.toString()}</code>
</pre>
Please go to the <FaCog /> in Decky Loader to go to the settings menu if you need to uninstall this plugin.
</>
);
this.plugins.push({