Skip to content

Commit

Permalink
Merge pull request #2 from gyselroth/dev
Browse files Browse the repository at this point in the history
v1.0.0 fixes
  • Loading branch information
raffis committed Dec 11, 2018
2 parents 2ac0584 + 516ce36 commit d34e3d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function parsePath(path) {
module.exports = {
sidebar: {
getItems: getItems,
ensureItem: ensuretem,
ensureItem: ensureItem,
},
nodeIcon: {
setFolderIcon: setFolderIcon
Expand Down
2 changes: 1 addition & 1 deletion lib/win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function setFolderIcon(node, icon) {
fs.unlinkSync(ini);
}

await fs.writeFile(ini, content);
fs.writeFileSync(ini, content);

fsWin.setAttributes(ini, {
IS_HIDDEN: true,
Expand Down
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ napi_value getItems(napi_env env, napi_callback_info info) {

for( unsigned int a = 0; a < CFArrayGetCount(list); a = a + 1 ) {
LSSharedFileListItemRef sflItemRef = (LSSharedFileListItemRef) CFArrayGetValueAtIndex(list, a);
CFStringRef name = (CFStringRef)LSSharedFileListItemCopyDisplayName(sflItemRef);

CFURLRef urlRef = NULL;
LSSharedFileListItemResolve(sflItemRef, kLSSharedFileListNoUserInteraction | kLSSharedFileListDoNotMountVolumes, &urlRef, NULL);
Expand Down

0 comments on commit d34e3d1

Please sign in to comment.