mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00
LibGUI+Applications: Use String in make_about_action()
This commit is contained in:
parent
e7a5a2e146
commit
ccab5ddf9b
53 changed files with 60 additions and 60 deletions
|
@ -17,12 +17,12 @@ namespace GUI {
|
|||
|
||||
namespace CommonActions {
|
||||
|
||||
NonnullRefPtr<Action> make_about_action(DeprecatedString const& app_name, Icon const& app_icon, Window* parent)
|
||||
NonnullRefPtr<Action> make_about_action(String const& app_name, Icon const& app_icon, Window* parent)
|
||||
{
|
||||
auto weak_parent = AK::make_weak_ptr_if_nonnull<Window>(parent);
|
||||
auto action = Action::create(DeprecatedString::formatted("&About {}", app_name), app_icon.bitmap_for_size(16), [=](auto&) {
|
||||
AboutDialog::show(
|
||||
String::from_deprecated_string(app_name).release_value_but_fixme_should_propagate_errors(),
|
||||
app_name,
|
||||
Core::Version::read_long_version_string().release_value_but_fixme_should_propagate_errors(),
|
||||
app_icon.bitmap_for_size(32),
|
||||
weak_parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue