diff --git a/src/Main/Forms/MainFrame.cpp b/src/Main/Forms/MainFrame.cpp index 97c60e7e..c9efd405 100644 --- a/src/Main/Forms/MainFrame.cpp +++ b/src/Main/Forms/MainFrame.cpp @@ -1687,7 +1687,6 @@ namespace VeraCrypt } VolumeInfoList protectionTriggeredVolumes; - SlotListCtrl->SetColumnWidth(0, wxLIST_AUTOSIZE); // Update list long prevItemIndex = -1; @@ -1773,8 +1772,10 @@ namespace VeraCrypt } } - if (listChanged) + if (listChanged) { + SlotListCtrl->SetColumnWidth(0, wxLIST_AUTOSIZE); OnListChanged(); + } foreach (shared_ptr volume, protectionTriggeredVolumes) OnHiddenVolumeProtectionTriggered (volume); diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp index 85c377f8..883b2d68 100644 --- a/src/Main/GraphicUserInterface.cpp +++ b/src/Main/GraphicUserInterface.cpp @@ -2072,8 +2072,12 @@ namespace VeraCrypt { item.SetText (field); listCtrl->SetItem (item); - if (item.GetColumn() == 3 || item.GetColumn() == 4) + if ((item.GetColumn() == 3 || item.GetColumn() == 4) && !item.GetText().IsEmpty()) listCtrl->SetColumnWidth(item.GetColumn(), wxLIST_AUTOSIZE); + // SlotListCtrl headers do not automatically move with column widths changing on macOS +#ifdef TC_MACOSX + listCtrl->Update(); +#endif changed = true; } }