File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ use crate::app::{
1010use crate :: clipboard:: ClipBoardContentType ;
1111use crate :: config:: Config ;
1212use crate :: debounce:: Debouncer ;
13- use crate :: platform:: { default_app_paths, icon_of_path_ns} ;
13+ use crate :: platform:: default_app_paths;
14+ use crate :: platform:: macos:: discovery:: icon_of_path_ns;
1415
1516use arboard:: Clipboard ;
1617use block2:: RcBlock ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ pub mod haptics;
55use iced:: wgpu:: rwh:: WindowHandle ;
66
77pub ( super ) use self :: discovery:: get_installed_apps;
8- pub ( super ) use self :: discovery:: icon_of_path_ns;
98pub ( super ) use self :: haptics:: perform_haptic;
109
1110/// This sets the activation policy of the app to Accessory, allowing rustcast to be visible ontop
Original file line number Diff line number Diff line change @@ -56,14 +56,3 @@ pub fn get_installed_apps(store_icons: bool) -> Vec<App> {
5656pub fn get_installed_apps ( store_icons : bool ) -> Vec < App > {
5757 self :: cross:: get_installed_apps ( store_icons)
5858}
59-
60- /// This loads the system icon for a file path, returning PNG bytes
61- #[ cfg( target_os = "macos" ) ]
62- pub fn icon_of_path_ns ( path : & str ) -> Option < Vec < u8 > > {
63- self :: macos:: icon_of_path_ns ( path)
64- }
65-
66- #[ cfg( not( target_os = "macos" ) ) ]
67- pub fn icon_of_path_ns ( _path : & str ) -> Option < Vec < u8 > > {
68- None
69- }
You can’t perform that action at this time.
0 commit comments