mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-09 00:08:43 +01:00
Simplify if condition
This commit is contained in:
parent
f20bb388be
commit
f39ffcb997
@ -228,7 +228,7 @@ void AlbumCoverManager::Init() {
|
|||||||
restoreGeometry(s.value("geometry").toByteArray());
|
restoreGeometry(s.value("geometry").toByteArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s.contains("splitter_state") || (s.contains("splitter_state") && !ui_->splitter->restoreState(s.value("splitter_state").toByteArray()))) {
|
if (!s.contains("splitter_state") || !ui_->splitter->restoreState(s.value("splitter_state").toByteArray())) {
|
||||||
// Sensible default size for the artists view
|
// Sensible default size for the artists view
|
||||||
ui_->splitter->setSizes(QList<int>() << 200 << width() - 200);
|
ui_->splitter->setSizes(QList<int>() << 200 << width() - 200);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user