Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the "Display Columns" dialog. #2154

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Src/DirColsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ void CDirColsDlg::OnDefaults()
m_listColumns.DeleteAllItems();
m_bReset = true;
LoadDefLists();

// Set first item to selected state
SelectItem(0);
}

/**
Expand Down Expand Up @@ -304,6 +307,13 @@ void CDirColsDlg::OnLvnItemchangedColdlgList(NMHDR *pNMHDR, LRESULT *pResult)
EnableDlgItem(IDC_DOWN,
ind != m_listColumns.GetItemCount() - static_cast<int>(m_listColumns.GetSelectedCount()));
}
else
{
// Clear the column description and disable "Move Up" and "Move Down" buttons when no item is selected.
SetDlgItemText(IDC_COLDLG_DESC, _T(""));
EnableDlgItem(IDC_UP, false);
EnableDlgItem(IDC_DOWN, false);
}

// Disable the "OK" button when no items are checked.
bool bChecked = false;
Expand Down
Loading