mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 21:00:06 +00:00
Adding const to uiGeometry and uiState
This commit is contained in:
parent
3c5c9ea27e
commit
b6797eee7e
1 changed files with 2 additions and 2 deletions
|
|
@ -472,12 +472,12 @@ void MainWindow::showEvent(QShowEvent* event)
|
||||||
auto& uiSettings = settings::UiSettings::Instance();
|
auto& uiSettings = settings::UiSettings::Instance();
|
||||||
|
|
||||||
// restore the geometry state
|
// restore the geometry state
|
||||||
std::string uiGeometry = uiSettings.main_ui_geometry().GetValue();
|
const std::string uiGeometry = uiSettings.main_ui_geometry().GetValue();
|
||||||
restoreGeometry(
|
restoreGeometry(
|
||||||
QByteArray::fromBase64(QByteArray::fromStdString(uiGeometry)));
|
QByteArray::fromBase64(QByteArray::fromStdString(uiGeometry)));
|
||||||
|
|
||||||
// restore the UI state
|
// restore the UI state
|
||||||
std::string uiState = uiSettings.main_ui_state().GetValue();
|
const std::string uiState = uiSettings.main_ui_state().GetValue();
|
||||||
|
|
||||||
restored = restoreState(
|
restored = restoreState(
|
||||||
QByteArray::fromBase64(QByteArray::fromStdString(uiState)));
|
QByteArray::fromBase64(QByteArray::fromStdString(uiState)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue