mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
SystemMonitor: Use icon for 'Profile' action
This commit is contained in:
parent
45632986a4
commit
b1f7632610
Notes:
sideshowbarker
2024-07-19 04:21:49 +09:00
Author: https://github.com/BenWiederhake
Commit: b1f7632610
Pull-request: https://github.com/SerenityOS/serenity/pull/2971
1 changed files with 11 additions and 10 deletions
|
@ -208,7 +208,8 @@ int main(int argc, char** argv)
|
||||||
kill(pid, SIGCONT);
|
kill(pid, SIGCONT);
|
||||||
});
|
});
|
||||||
|
|
||||||
auto profile_action = GUI::Action::create("Profile process", { Mod_Ctrl, Key_P }, [&process_table_view](auto&) {
|
auto profile_action = GUI::Action::create("Profile process", { Mod_Ctrl, Key_P },
|
||||||
|
Gfx::Bitmap::load_from_file("/res/icons/16x16/app-profiler.png"), [&process_table_view](auto&) {
|
||||||
pid_t pid = process_table_view.selected_pid();
|
pid_t pid = process_table_view.selected_pid();
|
||||||
if (pid != -1) {
|
if (pid != -1) {
|
||||||
auto pid_string = String::format("%d", pid);
|
auto pid_string = String::format("%d", pid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue