Skip to content

applets/taskmanager: use TextMetrics directly to elide long recent items

Jin Liu requested to merge work/jinliu/fix-popup-menu-long-history into master

Currently the code uses a linear search to elide long recent items. This can take more than 10 seconds for apps like qBittorrent which can have recent URL items with 1000+ characters.

Change the code to use TextMetrics.elidedText directly without a linear search.

Edited by Jin Liu

Merge request reports