mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
LibDesktop: Remove icons from Desktop::Launcher::Details
This commit is contained in:
parent
721b00a83a
commit
d4a60583a9
2 changed files with 0 additions and 7 deletions
|
@ -51,11 +51,6 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
|
||||||
else if (type_str == "userdefault")
|
else if (type_str == "userdefault")
|
||||||
details->launcher_type = LauncherType::UserDefault;
|
details->launcher_type = LauncherType::UserDefault;
|
||||||
}
|
}
|
||||||
if (auto icons_value = obj.get_ptr("icons")) {
|
|
||||||
icons_value->as_object().for_each_member([&](auto& name, auto& value) {
|
|
||||||
details->icons.set(name, value.to_string());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return details;
|
return details;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,10 +44,8 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Details : public RefCounted<Details> {
|
struct Details : public RefCounted<Details> {
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
String executable;
|
String executable;
|
||||||
HashMap<String, String> icons;
|
|
||||||
LauncherType launcher_type { LauncherType::Default };
|
LauncherType launcher_type { LauncherType::Default };
|
||||||
|
|
||||||
static NonnullRefPtr<Details> from_details_str(const String&);
|
static NonnullRefPtr<Details> from_details_str(const String&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue