-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mod Manager] Improvements to Collection Import #317
Conversation
Dyvinia
commented
Sep 26, 2023
•
edited
Loading
edited
- Improvements to Collection import
- Collections can now be imported even if they are not in an archive
- Alerts user if trying to drag in mod files from inside of an archive (such as drag/drop from winrar/7zip etc
Had to put the 2 changes into one PR since they both edit the same area |
{ | ||
string[] filenames = (string[])e.Data.GetData(DataFormats.FileDrop, true); | ||
InstallMods(filenames); | ||
|
||
ICollectionView view = CollectionViewSource.GetDefaultView(availableModsList.ItemsSource); | ||
view.Refresh(); | ||
} | ||
else if (e.Data.GetFormats().Any(f => f == "FileContents")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does that not write them to the tmp storage and then u should be able to import them anyways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows zip doesnt, winrar however does and it will satisfy the first if statement