Skip to content

Commit

Permalink
Handle WHITELIST_FOLDER and BLACKLIST_FOLDER verbs in activitylistmodel
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 5, 2023
1 parent 6035585 commit ffbefc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/tray/activitylistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,12 @@ void ActivityListModel::slotTriggerAction(const int activityIndex, const int act
(activity._syncFileItemStatus == SyncFileItem::Conflict || activity._syncFileItemStatus == SyncFileItem::FileNameClash)) {
slotTriggerDefaultAction(activityIndex);
return;
} else if (action._verb == "WHITELIST_FOLDER" && !activity._folder.isEmpty()) {
FolderMan::instance()->whitelistFolderPath(activity._folder);
return;
} else if (action._verb == "BLACKLIST_FOLDER" && !activity._folder.isEmpty()) {
FolderMan::instance()->blacklistFolderPath(activity._folder);
return;
}

emit sendNotificationRequest(activity._accName, action._link, action._verb, activityIndex);
Expand Down

0 comments on commit ffbefc3

Please sign in to comment.