lib/alfred_git.rb in alfred_git-0.3.0 vs lib/alfred_git.rb in alfred_git-0.3.1

- old
+ new

@@ -9,10 +9,11 @@ include AlfredGitVersion def initialize set_app_directory # If there's just one, it's the current version. - restore_settings unless Dir.glob("#{@app_directory.chomp('/alfred_git-#{VERSION}')}/alfred_git*").length > 1 + restore_settings if Dir.glob("#{@app_directory.chomp('/alfred_git-#{VERSION}')}/alfred_git*").length > 1 && + !(File.exists?("#{@app_directory}/lib/config.yaml")) config unless File.exists?("#{@app_directory}/lib/config.yaml") config_yaml = YAML.load_file("#{@app_directory}/lib/config.yaml") @repo_locations = config_yaml['repos'] @name = config_yaml['name'].nil? ? 'Wayne' : config_yaml['name'] \ No newline at end of file