Use a different hint on each platform
This commit is contained in:
parent
d53afe2538
commit
5868b4f0f9
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue