Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Settings

Class that handles setting/getting settings and can save them to a local file

Hierarchy

  • Settings

Index

Methods

Static getHidden

  • getHidden(id: "restartInfo" | "windowBounds" | "minWindowBounds" | "searchFilter" | "sort" | "savedEntries" | "savedLinks" | "githubLatestReleaseUrl"): any
  • Get value of a hidden setting

    Parameters

    • id: "restartInfo" | "windowBounds" | "minWindowBounds" | "searchFilter" | "sort" | "savedEntries" | "savedLinks" | "githubLatestReleaseUrl"

      Unique id

    Returns any

    The value

Static getModifiable

  • getModifiable(id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow"): any
  • Get value of a modifiable setting

    Parameters

    • id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow"

      Unique id

    Returns any

    The value

Static getModifiableDefault

  • getModifiableDefault(id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow"): any
  • Get the default value of a modifiable setting

    Parameters

    • id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow"

      Unique id

    Returns any

    The default value

Static getModifiableSetting

Static getModifiableSettings

  • getModifiableSettings(): string[]

Static makeModifiableTypeChecks

  • makeModifiableTypeChecks(type: "password" | "toggle" | "text" | "cronJob" | "url" | "keyboardShortcut", value: any): void
  • Type check a setting

    Parameters

    • type: "password" | "toggle" | "text" | "cronJob" | "url" | "keyboardShortcut"
    • value: any

    Returns void

Static save

  • save(): void

Static setHidden

  • setHidden(id: "restartInfo" | "windowBounds" | "minWindowBounds" | "searchFilter" | "sort" | "savedEntries" | "savedLinks" | "githubLatestReleaseUrl", value: any): void
  • Set hidden setting with id and value

    Parameters

    • id: "restartInfo" | "windowBounds" | "minWindowBounds" | "searchFilter" | "sort" | "savedEntries" | "savedLinks" | "githubLatestReleaseUrl"
    • value: any

    Returns void

Static setModifiable

  • setModifiable(id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow", value: any): void
  • Set modifiable setting with id and value

    Parameters

    • id: "nativeTitleBar" | "userName" | "userUrl" | "userPassword" | "minimizeToSystemTray" | "devMode" | "checkForUpdatesOnStartup" | "checkForUpdatesCronJob" | "checkForUpdatesCronJobConfiguration" | "checkForFeedCronJob" | "checkForFeedCronJobConfiguration" | "autoLaunch" | "globalShortcutShow"
    • value: any

    Returns void

Generated using TypeDoc