feat(17-01): add WriteTrackTagsByPath and ImageFilePicker backend methods
- WriteTrackTagsByPath resolves filePath to trackID via GetAudioFileByPath - ImageFilePicker opens native file dialog filtered to JPEG/PNG - Added Wails TypeScript bindings for both new methods
This commit is contained in:
@@ -4,6 +4,8 @@ import {context} from '../models';
|
||||
|
||||
export function DirectoryPicker():Promise<string>;
|
||||
|
||||
export function ImageFilePicker():Promise<string>;
|
||||
|
||||
export function PlaylistFilePicker():Promise<Array<string>>;
|
||||
|
||||
export function SetContext(arg1:context.Context):Promise<void>;
|
||||
|
||||
@@ -6,6 +6,10 @@ export function DirectoryPicker() {
|
||||
return window['go']['frontendutil']['FrontendUtil']['DirectoryPicker']();
|
||||
}
|
||||
|
||||
export function ImageFilePicker() {
|
||||
return window['go']['frontendutil']['FrontendUtil']['ImageFilePicker']();
|
||||
}
|
||||
|
||||
export function PlaylistFilePicker() {
|
||||
return window['go']['frontendutil']['FrontendUtil']['PlaylistFilePicker']();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user