mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Rename Button method set_mimic_pressed => mimic_pressed
This function does more things than a simple getter, so it's probably better to not use this notation. I also drop the parameter as it was always used with the same value.
This commit is contained in:
committed by
Andreas Kling
parent
c15a7b79ef
commit
96b3063121
@@ -246,10 +246,10 @@ void Button::set_default(bool default_button)
|
||||
});
|
||||
}
|
||||
|
||||
void Button::set_mimic_pressed(bool mimic_pressed)
|
||||
void Button::mimic_pressed()
|
||||
{
|
||||
if (!is_being_pressed()) {
|
||||
m_mimic_pressed = mimic_pressed;
|
||||
m_mimic_pressed = true;
|
||||
|
||||
stop_timer();
|
||||
start_timer(80, Core::TimerShouldFireWhenNotVisible::Yes);
|
||||
|
||||
Reference in New Issue
Block a user