store splitter position

This commit is contained in:
defnax 2020-06-09 21:03:55 +02:00
parent fe591c2bd7
commit dc61167733

View File

@ -523,6 +523,8 @@ void GxsChannelPostsWidgetWithModel::processSettings(bool load)
/* View mode */ /* View mode */
//setViewMode(Settings->value("viewMode", VIEW_MODE_FEEDS).toInt()); //setViewMode(Settings->value("viewMode", VIEW_MODE_FEEDS).toInt());
#endif #endif
// state of splitter
ui->splitter->restoreState(Settings->value("SplitterChannelPosts").toByteArray());
} else { } else {
#ifdef TO_REMOVE #ifdef TO_REMOVE
// save settings // save settings
@ -533,6 +535,8 @@ void GxsChannelPostsWidgetWithModel::processSettings(bool load)
/* View mode */ /* View mode */
//Settings->setValue("viewMode", viewMode()); //Settings->setValue("viewMode", viewMode());
#endif #endif
// state of splitter
Settings->setValue("SplitterChannelPosts", ui->splitter->saveState());
} }
Settings->endGroup(); Settings->endGroup();