Skip to content

Commit a2f9817

Browse files
committed
Tail plugin: when switching between recently monitored files, clear the content before switching files
1 parent 1e7901e commit a2f9817

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tail/TailPanel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void TailPanel::OnOpenRecentItem(wxCommandEvent& event)
161161
{
162162
if(m_recentItemsMap.count(event.GetId()) == 0) return;
163163
wxString filepath = m_recentItemsMap[event.GetId()];
164+
DoClear(); // Clear the old content first
164165
DoOpen(filepath);
165166
m_recentItemsMap.clear();
166167
}

0 commit comments

Comments
 (0)