Skip to content

Commit 274c2c1

Browse files
Refresh Project List on Stop
- This will update the project times as well as add a new project if needed
1 parent 0c2ea59 commit 274c2c1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/recentProjects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const projectListDiv_el = document.getElementById('projectListDiv');
22

33
async function populateRecentProjects(){
4-
4+
projectListDiv_el.innerHTML = '';
55
for (const element of activeProjects){
66
const projectItem_el = document.createElement('div');
77
projectItem_el.classList.add('project-item-div');

src/timer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ async function stopTimer(){
5050
clearInterval(timerInterval);
5151
logTimeHandler(formatLogTime);
5252
populateQuickTimes();
53+
getAllActiveProjects();
5354
toggleInputsDiv();
5455
}
5556

0 commit comments

Comments
 (0)