Open both old and new log files, but just retain the last 1000 lines
This commit is contained in:
parent
de35c3f99d
commit
df6e733e68
2 changed files with 60 additions and 4 deletions
|
@ -949,11 +949,11 @@ impl Workspace {
|
|||
&mut self,
|
||||
cx: &mut ViewContext<Self>,
|
||||
app_state: Arc<AppState>,
|
||||
mut callback: F,
|
||||
callback: F,
|
||||
) -> T
|
||||
where
|
||||
T: 'static,
|
||||
F: FnMut(&mut Workspace, &mut ViewContext<Workspace>) -> T,
|
||||
F: FnOnce(&mut Workspace, &mut ViewContext<Workspace>) -> T,
|
||||
{
|
||||
if self.project.read(cx).is_local() {
|
||||
callback(self, cx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue