mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 12:23:41 +01:00
Make recapitalizing internal mod folders possible without changing behaviour otherwise.
This commit is contained in:
parent
7e7e74a534
commit
6df82fdf18
3 changed files with 227 additions and 220 deletions
|
|
@ -300,16 +300,18 @@ public partial class SettingsInterface
|
|||
var targetUri = new Uri( newDir.FullName );
|
||||
if( sourceUri.Equals( targetUri ) )
|
||||
{
|
||||
var tmpFolder = new DirectoryInfo(TempFile.TempFileName( dir.Parent! ).FullName);
|
||||
var tmpFolder = new DirectoryInfo( TempFile.TempFileName( dir.Parent! ).FullName );
|
||||
if( _modManager.RenameModFolder( Mod.Data, tmpFolder ) )
|
||||
{
|
||||
if( !_modManager.RenameModFolder( Mod.Data, newDir ) )
|
||||
{
|
||||
PluginLog.Error("Could not recapitalize folder after renaming, reverting rename." );
|
||||
PluginLog.Error( "Could not recapitalize folder after renaming, reverting rename." );
|
||||
_modManager.RenameModFolder( Mod.Data, dir );
|
||||
}
|
||||
|
||||
_selector.ReloadCurrentMod();
|
||||
}
|
||||
|
||||
ImGui.CloseCurrentPopup();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue