Skip to content

Commit

Permalink
Updated restore config command
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Sep 10, 2018
1 parent 8c6096c commit ec900d7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/commands/restoreConfig.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { getDefaultIconOptions } from '../icons/index';
import * as helpers from './../helpers';

/** Restore all configurations to default. */
export const restoreDefaultConfig = () => {
const defaultOptions = getDefaultIconOptions();
helpers.setThemeConfig('activeIconPack', defaultOptions.activeIconPack, true);
helpers.setThemeConfig('folders.theme', defaultOptions.folders.theme, true);
helpers.setThemeConfig('folders.color', defaultOptions.folders.color, true);
helpers.setThemeConfig('hidesExplorerArrows', defaultOptions.hidesExplorerArrows, true);
helpers.setThemeConfig('opacity', defaultOptions.opacity, true);
helpers.setThemeConfig('files.associations', defaultOptions.files.associations, true);
helpers.setThemeConfig('folders.associations', defaultOptions.folders.associations, true);
helpers.setThemeConfig('languages.associations', defaultOptions.languages.associations, true);
helpers.setThemeConfig('activeIconPack', undefined, true);
helpers.setThemeConfig('folders.theme', undefined, true);
helpers.setThemeConfig('folders.color', undefined, true);
helpers.setThemeConfig('hidesExplorerArrows', undefined, true);
helpers.setThemeConfig('opacity', undefined, true);
helpers.setThemeConfig('files.associations', undefined, true);
helpers.setThemeConfig('folders.associations', undefined, true);
helpers.setThemeConfig('languages.associations', undefined, true);
};

0 comments on commit ec900d7

Please sign in to comment.