mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Fix two small issue (#246)
Signed-off-by: Aisuko <urakiny@gmail.com> Signed-off-by: Aisuko <urakiny@gmail.com>
This commit is contained in:
@@ -183,7 +183,7 @@ fn fix_shortcut_icons(
|
|||||||
for ext in ["ico", "png", "jpg", "webp"] {
|
for ext in ["ico", "png", "jpg", "webp"] {
|
||||||
let path = image_folder.join(image_type.file_name(app_id, ext));
|
let path = image_folder.join(image_type.file_name(app_id, ext));
|
||||||
if !icon_exsists && path.exists() {
|
if !icon_exsists && path.exists() {
|
||||||
shortcut.icon = format!("\"{}\"", path.to_string_lossy().to_string());
|
shortcut.icon = format!("\"{}\"", path.to_string_lossy());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,16 +185,16 @@ fn to_shortcut_owned(shortcuts_to_import: Vec<(String, Vec<ShortcutToImport>)>)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
fn setup_proton<'a, I>(shortcut_infos: I)
|
fn setup_proton<'a, I>(shortcut_infos: I)
|
||||||
where I: IntoIterator<Item = &'a (String,Vec<ShortcutToImport>)>
|
where
|
||||||
{
|
I: IntoIterator<Item = &'a (String,Vec<ShortcutToImport>)>{
|
||||||
let mut shortcuts_to_proton = vec![];
|
let mut shortcuts_to_proton = vec![];
|
||||||
|
|
||||||
for (name,shortcuts) in shortcut_infos {
|
for (name,shortcuts) in shortcut_infos {
|
||||||
for shortcut_info in shortcuts{
|
for shortcut_info in shortcuts{
|
||||||
if shortcut_info.needs_proton {
|
if shortcut_info.needs_proton {
|
||||||
crate::sync::symlinks::ensure_links_folder_created(&name);
|
crate::sync::symlinks::ensure_links_folder_created(name);
|
||||||
}
|
}
|
||||||
if shortcut_info.needs_proton {
|
if shortcut_info.needs_proton {
|
||||||
shortcuts_to_proton.push(format!("{}", shortcut_info.shortcut.app_id));
|
shortcuts_to_proton.push(format!("{}", shortcut_info.shortcut.app_id));
|
||||||
|
|||||||
Reference in New Issue
Block a user