mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
MemoryWidget: Fix splitter state restoration
Fix a copy-paste error causing MemoryWidget's splitter to load the wrong state data when creating the MemoryWidget. For me this caused the side panel to be scrunched up every time I started Dolphin, but the exact effects probably depend on the state of your MemoryWidget and CodeWidget.
This commit is contained in:
@ -58,7 +58,7 @@ MemoryWidget::MemoryWidget(Core::System& system, QWidget* parent)
|
|||||||
// macOS: setHidden() needs to be evaluated before setFloating() for proper window presentation
|
// macOS: setHidden() needs to be evaluated before setFloating() for proper window presentation
|
||||||
// according to Settings
|
// according to Settings
|
||||||
setFloating(settings.value(QStringLiteral("memorywidget/floating")).toBool());
|
setFloating(settings.value(QStringLiteral("memorywidget/floating")).toBool());
|
||||||
m_splitter->restoreState(settings.value(QStringLiteral("codewidget/splitter")).toByteArray());
|
m_splitter->restoreState(settings.value(QStringLiteral("memorywidget/splitter")).toByteArray());
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::MemoryVisibilityChanged, this,
|
connect(&Settings::Instance(), &Settings::MemoryVisibilityChanged, this,
|
||||||
[this](bool visible) { setHidden(!visible); });
|
[this](bool visible) { setHidden(!visible); });
|
||||||
|
Reference in New Issue
Block a user