mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-12 23:34:08 +02:00
Change migration link generator to not delete existing links
This commit is contained in:
parent
147c268ef8
commit
e6e4d0ba75
@ -131,11 +131,9 @@ private static bool BeginMigration(MigrationDecision decision, Action<Exception>
|
||||
string renamed = Path.Combine(location,Program.BrandName+".lnk");
|
||||
|
||||
try{
|
||||
if (File.Exists(renamed)){
|
||||
File.Delete(renamed);
|
||||
if (!File.Exists(renamed)){
|
||||
File.Move(linkFile,renamed);
|
||||
}
|
||||
|
||||
File.Move(linkFile,renamed);
|
||||
}catch{
|
||||
// eh, too bad
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user