mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Add option to disable PCP.
This commit is contained in:
parent
e3b7f72893
commit
8043e6fb6b
3 changed files with 5 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ public class Configuration : IPluginConfiguration, ISavable, IService
|
||||||
public bool HideMachinistOffhandFromChangedItems { get; set; } = true;
|
public bool HideMachinistOffhandFromChangedItems { get; set; } = true;
|
||||||
public bool DefaultTemporaryMode { get; set; } = false;
|
public bool DefaultTemporaryMode { get; set; } = false;
|
||||||
public bool EnableCustomShapes { get; set; } = true;
|
public bool EnableCustomShapes { get; set; } = true;
|
||||||
|
public bool DisablePcpHandling { get; set; } = false;
|
||||||
public RenameField ShowRename { get; set; } = RenameField.BothDataPrio;
|
public RenameField ShowRename { get; set; } = RenameField.BothDataPrio;
|
||||||
public ChangedItemMode ChangedItemDisplay { get; set; } = ChangedItemMode.GroupedCollapsed;
|
public ChangedItemMode ChangedItemDisplay { get; set; } = ChangedItemMode.GroupedCollapsed;
|
||||||
public int OptionGroupCollapsibleMin { get; set; } = 5;
|
public int OptionGroupCollapsibleMin { get; set; } = 5;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ public class PcpService : IApiService, IDisposable
|
||||||
|
|
||||||
private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? oldDirectory, DirectoryInfo? newDirectory)
|
private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? oldDirectory, DirectoryInfo? newDirectory)
|
||||||
{
|
{
|
||||||
if (type is not ModPathChangeType.Added || newDirectory is null)
|
if (type is not ModPathChangeType.Added || _config.DisablePcpHandling || newDirectory is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -598,6 +598,9 @@ public class SettingsTab : ITab, IUiService
|
||||||
Checkbox("Always Open Import at Default Directory",
|
Checkbox("Always Open Import at Default Directory",
|
||||||
"Open the import window at the location specified here every time, forgetting your previous path.",
|
"Open the import window at the location specified here every time, forgetting your previous path.",
|
||||||
_config.AlwaysOpenDefaultImport, v => _config.AlwaysOpenDefaultImport = v);
|
_config.AlwaysOpenDefaultImport, v => _config.AlwaysOpenDefaultImport = v);
|
||||||
|
Checkbox("Handle PCP Files",
|
||||||
|
"When encountering specific mods, usually but not necessarily denoted by a .pcp file ending, Penumbra will automatically try to create an associated collection and assign it to a specific character for this mod package. This can turn this behaviour off if unwanted.",
|
||||||
|
!_config.DisablePcpHandling, v => _config.DisablePcpHandling = !v);
|
||||||
DrawDefaultModImportPath();
|
DrawDefaultModImportPath();
|
||||||
DrawDefaultModAuthor();
|
DrawDefaultModAuthor();
|
||||||
DrawDefaultModImportFolder();
|
DrawDefaultModImportFolder();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue