Changeset 2472


Ignore:
Timestamp:
3/13/2012 5:15:26 AM (2 years ago)
Author:
lowjoel
Message:

Move the ForceUnlockLockedFiles? setting to Eraser.Plugins since it should be something that plugins respect and not the Eraser.Manager. We however would need a way to expose this functionality to plugins without directly providing access to Eraser.Util.Native.

Location:
branches/eraser6/pluginsRewrite
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Manager/Settings.cs

    r2462 r2472  
    4848 
    4949        /// <summary> 
    50         /// Whether files which are locked when being erased should be forcibly 
    51         /// unlocked for erasure. 
    52         /// </summary> 
    53         public bool ForceUnlockLockedFiles 
    54         { 
    55             get 
    56             { 
    57                 return Store.GetValue("ForceUnlockLockedFiles", true); 
    58             } 
    59             set 
    60             { 
    61                 Store.SetValue("ForceUnlockLockedFiles", value); 
    62             } 
    63         } 
    64  
    65         /// <summary> 
    6650        /// Whether missed tasks should be run when the program next starts. 
    6751        /// </summary> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/Settings.cs

    r2462 r2472  
    130130 
    131131        /// <summary> 
     132        /// Whether files which are locked when being erased should be forcibly 
     133        /// unlocked for erasure. 
     134        /// </summary> 
     135        public bool ForceUnlockLockedFiles 
     136        { 
     137            get 
     138            { 
     139                return Store.GetValue("ForceUnlockLockedFiles", true); 
     140            } 
     141            set 
     142            { 
     143                Store.SetValue("ForceUnlockLockedFiles", value); 
     144            } 
     145        } 
     146 
     147        /// <summary> 
    132148        /// The persistent store for this object. 
    133149        /// </summary> 
  • branches/eraser6/pluginsRewrite/Eraser/SettingsPanel.cs

    r2466 r2472  
    182182            uiContextMenu.Checked = settings.IntegrateWithShell; 
    183183            lockedForceUnlock.Checked = 
    184                 ManagerLibrary.Instance.Settings.ForceUnlockLockedFiles; 
     184                Host.Instance.Settings.ForceUnlockLockedFiles; 
    185185            schedulerMissedImmediate.Checked = 
    186186                ManagerLibrary.Instance.Settings.ExecuteMissedTasksImmediately; 
     
    342342 
    343343            //Save the settings that don't fail first. 
    344             managerSettings.ForceUnlockLockedFiles = lockedForceUnlock.Checked; 
     344            Host.Instance.Settings.ForceUnlockLockedFiles = lockedForceUnlock.Checked; 
    345345            managerSettings.ExecuteMissedTasksImmediately = schedulerMissedImmediate.Checked; 
    346346            settings.ClearCompletedTasks = schedulerClearCompleted.Checked; 
Note: See TracChangeset for help on using the changeset viewer.