Skip to content
  • Peter Mühlenpfordt's avatar
    Prevent saving Recent Files and LastTargetDir if history is disabled · 8bd2f625
    Peter Mühlenpfordt authored
    Summary:
    Disabling history in {nav Settings > Configure > Advanced > History}
    does not prevent showing and populating {nav File > Open Recent}.
    The last target directory for Copy/Move/Link To dialog does not check
    for history option too.
    This patch only saves/restores file history if the option is enabled
    and hides the menu entry if disabled.
    
    BUG: 332853
    BUG: 391527
    
    Depends on D11280
    
    Test Plan:
    * Enable/disable history option
    * Open some images/folders in Gwenview
    * Copy/Move/Link To some images
    * Check if history is (not) saved/restored according to option value
    
    Reviewers: #gwenview, rkflx
    
    Reviewed By: #gwenview, rkflx
    
    Subscribers: rkflx
    
    Differential Revision: https://phabricator.kde.org/D11263
    8bd2f625