[InformationPanel] Hide the video when the preview is disabled, avoid computing…

Authored by meven on Mar 24 2019, 5:32 PM.

Description

[InformationPanel] Hide the video when the preview is disabled, avoid computing the preview when it is disabled

Summary:
Bug symptom :

Fix the bugs and allow to avoid launching a PreviewJob with all files even when the preview is disabled.

Test Plan:

  1. In dolphin with an information panel with preview on
  2. launch the video preview
  3. Disable the preview

    ->bug 1: the video player control is still visible (this bug fix this)
  4. re-enable preview

    -> bug 2: the video stays visible and the preview is displayed above (this bug fix this)

Reviewers: Dolphin, elvisangelaccio, ngraham

Reviewed By: Dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, kfm-devel

Tags: Dolphin

Differential Revision: https://phabricator.kde.org/D19844