def temporary_settings_fix():
s = sublime.load_settings('gpg.sublime-settings')
if s.has('gpg_command'):
s.set('gpg.command', s.get('gpg_command', 'gpg'))
s.erase('gpg_command')
if s.has('homedir'):
s.set('gpg.homedir', s.get('homedir', ''))
s.erase('homedir')
if s.has('verbosity'):
s.set('gpg.verbosity', s.get('verbosity', 1))
s.erase('verbosity')
if s.has('recipients'):
s.set('gpg.recipients', s.get('recipients', ''))
s.erase('recipients')
if s.has('first_run'):
s.set('gpg.readme_shown', not s.get('first_run', True))
s.erase('first_run')
sublime.save_settings('gpg.sublime-settings')
评论列表
文章目录