mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00: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:
parent
b6be5ee5d3
commit
c29b3e098d
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ MemoryWidget::MemoryWidget(Core::System& system, QWidget* parent)
|
|||
// macOS: setHidden() needs to be evaluated before setFloating() for proper window presentation
|
||||
// according to Settings
|
||||
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,
|
||||
[this](bool visible) { setHidden(!visible); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue