Skip to content

Commit

Permalink
Merge branch 'release/v2.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeboer committed Dec 12, 2017
2 parents cea030b + c2379f3 commit 4dfac89
Show file tree
Hide file tree
Showing 9 changed files with 1,161 additions and 581 deletions.
11 changes: 6 additions & 5 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
<dict>
<key>alfredfiltersresults</key>
<true/>
<key>alfredfiltersresultsmatchmode</key>
<integer>2</integer>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
Expand Down Expand Up @@ -336,18 +338,17 @@ Simply type atom and press space to list all projects. Optionally type a search
</dict>
<key>variables</key>
<dict>
<key>nodePath</key>
<string>/usr/local/bin/node</string>
<key>atomApp</key>
<string>Atom</string>
<key>terminalApp</key>
<string>iTerm</string>
<string>Terminal</string>
</dict>
<key>variablesdontexport</key>
<array>
<string>terminalApp</string>
<string>nodePath</string>
</array>
<key>version</key>
<string>2.3.1</string>
<string>2.3.2</string>
<key>webaddress</key>
<string>https://github.com/Cloudstek/alfred-atom</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions main.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ const checkEnvironmentChanges = (): void => {
*/
const checkIcons = async (projects: Array<Object>): Promise<void> => {
const themePath: string = Hugo.alfredMeta.themeFile;
const lastTheme: ?string = Hugo.cache.get('lastTheme');
const lastTheme: ?string = Hugo.config.get('lastTheme');

try {
fs.statSync(path.join(__dirname, 'icons'));
} catch (e) {
Hugo.cache.set('lastTheme', Hugo.alfredMeta.theme);
Hugo.config.set('lastTheme', Hugo.alfredMeta.theme);
Icons.rebuild(projects);
return;
}

if (!lastTheme || lastTheme !== Hugo.alfredMeta.theme) {
Hugo.cache.set('lastTheme', Hugo.alfredMeta.theme);
Hugo.config.set('lastTheme', Hugo.alfredMeta.theme);
Icons.rebuild(projects);
return;
}
Expand All @@ -64,6 +64,8 @@ const checkIcons = async (projects: Array<Object>): Promise<void> => {

themeFile.get();
}

Icons.rebuild(projects, {onlyMissing: true});
};

/**
Expand Down
Loading

0 comments on commit 4dfac89

Please sign in to comment.