mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix drag and drop naming issue
This commit is contained in:
@@ -396,6 +396,12 @@ Options:
|
|||||||
actualroot = (actualroot == "" ? "Default" : actualroot);
|
actualroot = (actualroot == "" ? "Default" : actualroot);
|
||||||
string actualitem = (item == _basePath ? item : item.Remove(0, _basePath.Length).Remove(0, (actualroot != "Default" ? actualroot.Length + 1 : 0)));
|
string actualitem = (item == _basePath ? item : item.Remove(0, _basePath.Length).Remove(0, (actualroot != "Default" ? actualroot.Length + 1 : 0)));
|
||||||
|
|
||||||
|
// Drag and drop is funny
|
||||||
|
if (actualitem == Path.GetFullPath(actualitem))
|
||||||
|
{
|
||||||
|
actualitem = Path.GetFileName(actualitem);
|
||||||
|
}
|
||||||
|
|
||||||
_roms.Add(new RomData
|
_roms.Add(new RomData
|
||||||
{
|
{
|
||||||
Game = actualroot,
|
Game = actualroot,
|
||||||
|
|||||||
Reference in New Issue
Block a user