Skip to content

Commit

Permalink
solidify fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Jun 20, 2020
1 parent a02f75c commit efdd2ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## 2.3.3
* Unbork browse for files

## 2.3.2
### Fixed
* Filter by category also removing titles in all artwork view
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ng-path-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class NgPathInputComponent implements ControlValueAccessor {
buttonLabel:buttonLabel
} as Electron.OpenDialogOptions).then((result: any)=>{
if(result && !result.canceled && result.filePaths && result.filePaths.length==1){
this.writeValue('_browse_&'.concat(result.filePaths[0]));
this.writeValue('_browse_&:&'.concat(result.filePaths[0]));
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/ng-text-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export class NgTextInputComponent implements ControlValueAccessor {
writeValue(value: string, updateDom: boolean = true, selection?: { start: number, end: number }): void {
let previousValue = this.currentValue;
if (value !== this.currentValue) {
if(value&&value.split('&')[0]=='_browse_'){
value = this.appendGlob? path.resolve(value.split('&')[1],path.basename(this.currentValue)||this.appendGlob).replace(/\\/g,'/'):value.split('&')[1];
if(value&&value.split('&:&')[0]=='_browse_'){
value = this.appendGlob? path.resolve(value.split('&:&')[1],path.basename(this.currentValue)||this.appendGlob).replace(/\\/g,'/'):value.split('&:&')[1];
}
this.currentValue = value;
if (updateDom || this.highlight)
Expand Down

0 comments on commit efdd2ea

Please sign in to comment.