public static PlayniteSettings LoadSettings()
        {
            if (File.Exists(PlaynitePaths.ConfigFilePath))
            {
                var settings = JsonConvert.DeserializeObject <PlayniteSettings>(File.ReadAllText(PlaynitePaths.ConfigFilePath));
                instance = settings;
            }

            return(Instance);
        }
        public void BeginEdit()
        {
            if (isEditing)
            {
                return;
            }

            isEditing    = true;
            EditedFields = new List <string>();
            editingCopy  = this.CloneJson();
        }
        public static PlayniteSettings LoadSettings()
        {
            try
            {
                if (File.Exists(PlaynitePaths.ConfigFilePath))
                {
                    var settings = JsonConvert.DeserializeObject <PlayniteSettings>(File.ReadAllText(PlaynitePaths.ConfigFilePath));
                    instance = settings;
                }
            }
            catch (Exception e)
            {
                logger.Error(e, "Failed to load application settings.");
                instance = new PlayniteSettings();
            }

            return(Instance);
        }