Skip to content

importer: Show "Install protocol support" button when protocol support is missing

Currently, when the protocol support is not installed (e.g. kamera), the importer will report "Unknown protocol" error and leaves the dialog empty without any further instruction. The behavior is not friendly for 1-dot users as mentioned in the Nate's blog article.

This commit adds a button named "Install protocol support for %1". The button is only visible when DocumentDirFinder emits KIO::Error::ERR_CANNOT_CREATE_SLAVE error. The button can

  1. open Discover and directly open kamera page if the scheme is "camera".
  2. open Discover and search the scheme for other schemes.

To make DocumentDirFinder able to emit error signal, a new signal named error() is added to DocumentDirFinder.

FEATURE: 446420

Kamera is missing Nav to Kamera page if the protocol is "camera" Other protocol Search for the protocol name
图片 image 图片 image
Edited by Fushan Wen

Merge request reports

Loading