Add a thin layer around SettingsStorage class

This new layer would be handy for saving GUI widget states as they don't
need the value cached and they store/load rarely.
This commit is contained in:
Chocobo1 2020-12-28 23:32:59 +08:00
parent 60d65d8137
commit 0b0597be0c
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
12 changed files with 122 additions and 92 deletions

View file

@ -159,7 +159,7 @@ void PreviewSelectDialog::loadWindowState()
Utils::Gui::resize(this, m_storeDialogSize);
// Restore TreeView Header state
if (!m_storeTreeHeaderState.value().isEmpty())
if (!m_storeTreeHeaderState.get().isEmpty())
{
m_headerStateInitialized = m_ui->previewList->header()->restoreState(m_storeTreeHeaderState);
}