Example #1
0
        internal static void DisablePlugin(bool showErrorBox = true)
        {
            if (showErrorBox)
            {
                Logger.Error($"Plugin \"{PLUGIN_NAME}\" will be disabled", null, true);
            }

            IsPluginDisabled = true;
            Logger.SetMode(Logger.Mode.DISABLED);
            _linksHighlighter?.Dispose();
            UserInputHandler.Disable();
            NavigationHandler.Disable();
        }
Example #2
0
 internal static void OnShutdown()
 {
     UserInputHandler.Disable();
 }