From e3080d07dc78b16cdccc84c0373d513967f3e863 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Thu, 13 Jul 2017 05:21:22 +0200 Subject: [PATCH] Ensure plugin config exists after first run, fixes profile export crash Closes #147 --- Plugins/PluginConfig.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugins/PluginConfig.cs b/Plugins/PluginConfig.cs index fe9e8e58..d1813d30 100644 --- a/Plugins/PluginConfig.cs +++ b/Plugins/PluginConfig.cs @@ -40,6 +40,7 @@ public void Load(string file){ } } }catch(FileNotFoundException){ + Save(file); }catch(DirectoryNotFoundException){ }catch(Exception e){ Program.Reporter.HandleException("Plugin Configuration Error", "Could not read the plugin configuration file. If you continue, the list of disabled plugins will be reset to default.", true, e);