[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

set_image: Don't join path

Kasper (Sep 16, 2025, 6:03 AM +0200) 8ef23235 ac7de35b

+2 -3
+1 -1
ferrum-addon/addon.d.ts
··· 138 138 139 139 export declare function save_view_options(viewOptions: ViewOptions): void 140 140 141 - export declare function set_image(index: number, pathStr: string): void 141 + export declare function set_image(index: number, path: string): void 142 142 143 143 export declare function set_image_data(index: number, bytes: ArrayBuffer): void 144 144
+1 -2
src-native/tracks/mod.rs
··· 207 207 208 208 #[napi(js_name = "set_image")] 209 209 #[allow(dead_code)] 210 - pub fn set_image(index: u32, path_str: String, env: Env) -> Result<()> { 210 + pub fn set_image(index: u32, path: String, env: Env) -> Result<()> { 211 211 let data: &mut Data = get_data(&env); 212 - let path = data.paths.get_track_file_path(&path_str); 213 212 let tag = match &mut data.current_tag { 214 213 Some(tag) => tag, 215 214 None => bail!("No tag loaded"),