Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT: Clear m_status_verbose_widget text on VM stop #11887

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

TheLastRar
Copy link
Contributor

@TheLastRar TheLastRar commented Oct 7, 2024

Description of Changes

Clears the text of m_status_verbose_widget

Rationale behind Changes

When starting emulation, either onVMResumed or onVMPaused is called depending on if Pause on start is set.
The emulator stop prompt will pause the emulator, if you accept, this will backup the previous value of m_status_verbose_widget to m_last_fps_status and set the text of m_status_verbose_widget to "Paused"

When you that start the emulator again, with Pause on start enabled, onVMPaused is called again, which will overwrite the backup text in m_last_fps_status with the value of m_status_verbose_widget, which was left as "Paused" from the previous run.

When you unpause, the text of m_status_verbose_widget is set to the value of m_last_fps_status, which contains "Paused" leading to no visual change.

This PR resets the value of m_status_verbose_widget to prevent this.

Note that the issue is not visible when "View -> Verbose Status" is enabled, as that replaces the text continuously

Suggested Testing Steps

Enable Pause on start
Start and stop, then start again the emulator

@github-actions github-actions bot added the GUI/Qt label Oct 7, 2024
@F0bes F0bes merged commit 4319094 into PCSX2:master Oct 8, 2024
12 checks passed
@TheLastRar TheLastRar deleted the QT-ClearPausedText branch October 11, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants