You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Desktop: Don't count completed to-dos in note counts when they are not shown (#2288)
* Desktop: don't count completed to-dos in note counts when they are not shown * Desktop: review comments for commit0383dcc
* Desktop: fix remaining lint issues with commit1fe4685
This commit is contained in:
committed by
Laurent Cozic
parent
8a392e1c06
commit
960d7f84eb
@ -450,11 +450,14 @@ class BaseApplication {
|
||||
refreshFolders = true;
|
||||
}
|
||||
|
||||
if (this.hasGui() && ((action.type == 'SETTING_UPDATE_ONE' && action.key.indexOf('folders.sortOrder') === 0) || action.type == 'SETTING_UPDATE_ALL')) {
|
||||
if (this.hasGui() && action.type == 'SETTING_UPDATE_ALL') {
|
||||
refreshFolders = 'now';
|
||||
}
|
||||
|
||||
if (this.hasGui() && ((action.type == 'SETTING_UPDATE_ONE' && action.key == 'showNoteCounts') || action.type == 'SETTING_UPDATE_ALL')) {
|
||||
if (this.hasGui() && action.type == 'SETTING_UPDATE_ONE' && (
|
||||
action.key.indexOf('folders.sortOrder') === 0 ||
|
||||
action.key == 'showNoteCounts' ||
|
||||
action.key == 'showCompletedTodos')) {
|
||||
refreshFolders = 'now';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user