mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 10:48:33 +01:00
Enforce a minimum size for playlist columns when they're shown. This prevents 0-width columns appearing for whatever reason. Fixes issue #85
This commit is contained in:
parent
1879b6f858
commit
91b2162d25
@ -58,4 +58,9 @@ void PlaylistHeader::HideCurrent() {
|
||||
|
||||
void PlaylistHeader::ToggleVisible(int section) {
|
||||
setSectionHidden(section, !isSectionHidden(section));
|
||||
|
||||
static const int kMinSectionSize = 80;
|
||||
|
||||
if (!isSectionHidden(section) && sectionSize(section) < kMinSectionSize)
|
||||
resizeSection(section, kMinSectionSize);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user