From 34c125050e54c05536d246e8dcf4666afc2b7784 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 22 Aug 2020 18:16:46 +1000 Subject: [PATCH] Qt: Update display after loading state Fixes display not updating after loading state while paused. --- src/duckstation-qt/qthostinterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 6c2b9fb95..db56c4de8 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -960,6 +960,8 @@ void QtHostInterface::loadState(const QString& filename) } LoadState(filename.toStdString().c_str()); + if (System::IsValid()) + renderDisplay(); } void QtHostInterface::loadState(bool global, qint32 slot) @@ -971,6 +973,8 @@ void QtHostInterface::loadState(bool global, qint32 slot) } LoadState(global, slot); + if (System::IsValid()) + renderDisplay(); } void QtHostInterface::saveState(bool global, qint32 slot, bool block_until_done /* = false */)