Skip to content

Commit 3773738

Browse files
authored
revert: fix: don't always update metrics on redraw (#1502)
Closes: #1500
1 parent c611fe0 commit 3773738

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/btop_input.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,9 @@ namespace Input {
254254
return;
255255
}
256256
Config::current_preset = -1;
257-
if (Proc::shown) Proc::resized = true;
258257
Draw::calcSizes();
259258
Draw::update_clock(true);
260-
Proc::resized = false;
261-
Runner::run("all", true, true);
259+
Runner::run("all", false, true);
262260
return;
263261
}
264262
else if (is_in(key, "p", "P") and Config::preset_list.size() > 1) {
@@ -275,11 +273,9 @@ namespace Input {
275273
Config::current_preset = old_preset;
276274
return;
277275
}
278-
if (Proc::shown) Proc::resized = true;
279276
Draw::calcSizes();
280277
Draw::update_clock(true);
281-
Proc::resized = false;
282-
Runner::run("all", true, true);
278+
Runner::run("all", false, true);
283279
return;
284280
} else if (is_in(key, "ctrl_r")) {
285281
kill(getpid(), SIGUSR2);

0 commit comments

Comments
 (0)