Use a different hint on each platform

This commit is contained in:
Samuel Elliott 2018-08-23 19:50:09 +01:00
parent d53afe2538
commit 5868b4f0f9
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import { EmoteModule } from 'builtin';
import { SettingsSet } from 'structs';
import { FileUtils, ClientLogger as Logger } from 'common';
import path from 'path';
import process from 'process';
import Globals from './globals';
import CssEditor from './csseditor';
import Events from './events';
@ -39,6 +40,12 @@ export default new class Settings {
return set;
});
// Set a hint for each platform for the use-keytar setting
const useKeytarSetting = this.getSetting('security', 'default', 'use-keytar');
if (process.platform === 'win32') useKeytarSetting.hint = 'Store the master password in Credential Manager';
if (process.platform === 'darwin') useKeytarSetting.hint = 'Store the master password in the default keychain';
if (process.platform === 'linux') useKeytarSetting.hint = 'Store the master password in libsecret';
}
/**