Skip to content

Commit

Permalink
bug fixes:
Browse files Browse the repository at this point in the history
refresh keep the current key
export chooses REG extension by default
  • Loading branch information
zodiacon committed Feb 13, 2024
1 parent b989e47 commit 1e95a86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RegExp/ExportDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ LRESULT CExportDlg::OnCloseCmd(WORD, WORD wID, HWND, BOOL&) {

LRESULT CExportDlg::OnBrowse(WORD, WORD wID, HWND, BOOL&) {
ThemeHelper::Suspend();
CSimpleFileDialog dlg(FALSE, nullptr, nullptr,
CSimpleFileDialog dlg(FALSE, L"Reg", nullptr,
OFN_EXPLORER | OFN_ENABLESIZING | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY,
L"REG format (*reg)\0*.reg\0Native Format\0*.*\0", m_hWnd);
if (dlg.DoModal() == IDOK) {
Expand Down
4 changes: 2 additions & 2 deletions RegExp/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,15 +677,15 @@ LRESULT CMainFrame::OnListItemChanged(int, LPNMHDR, BOOL&) {
}

LRESULT CMainFrame::OnViewRefresh(WORD, WORD, HWND, BOOL&) {
auto hCurrent = m_Tree.GetSelectedItem();
auto path = GetCurrentKeyPath();
TreeHelper th(m_Tree);
th.DoForEachItem(m_hStdReg, 0, [this](auto hItem, auto state) {
RefreshItem(hItem);
});
th.DoForEachItem(m_hRealReg, 0, [this](auto hItem, auto state) {
RefreshItem(hItem);
});
m_Tree.EnsureVisible(hCurrent);
GotoKey(path);
return 0;
}

Expand Down
Binary file modified RegExp/RegExp.rc
Binary file not shown.

0 comments on commit 1e95a86

Please sign in to comment.