mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-06 08:09:45 +00:00
Userland+LibCore: Remove legacy SERENITY_VERSION from Core::Version
This was being used as a default version argument in a couple of APIs, so those need to change signature and the caller always needs to provide a version.
This commit is contained in:
parent
38bb189772
commit
cb0b82ec46
Notes:
sideshowbarker
2024-07-17 05:49:06 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: cb0b82ec46
Pull-request: https://github.com/SerenityOS/serenity/pull/15068
Issue: https://github.com/SerenityOS/serenity/issues/15071
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg
7 changed files with 10 additions and 10 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <AK/Function.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/Version.h>
|
||||
#include <LibGUI/AboutDialog.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
@ -19,7 +20,7 @@ NonnullRefPtr<Action> make_about_action(String const& app_name, Icon const& app_
|
|||
{
|
||||
auto weak_parent = AK::make_weak_ptr_if_nonnull<Window>(parent);
|
||||
auto action = Action::create(String::formatted("&About {}", app_name), app_icon.bitmap_for_size(16), [=](auto&) {
|
||||
AboutDialog::show(app_name, app_icon.bitmap_for_size(32), weak_parent.ptr());
|
||||
AboutDialog::show(app_name, Core::Version::read_long_version_string(), app_icon.bitmap_for_size(32), weak_parent.ptr());
|
||||
});
|
||||
action->set_status_tip("Show application about box");
|
||||
return action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue