remove more unnecessary checks before deleting + remove fixed todo

pull/45/head
Miepee 3 years ago
parent c0d10474c5
commit 8e1fbc14f3

@ -137,7 +137,6 @@ public class CustomButton : Drawable
/// <summary> /// <summary>
/// Event raised, when this control gets focused. /// Event raised, when this control gets focused.
/// </summary> /// </summary>
//TODO: change focus via keyboard arrow keys
protected override void OnGotFocus(EventArgs e) protected override void OnGotFocus(EventArgs e)
{ {
hover = true; hover = true;

@ -628,7 +628,6 @@ public static class Profile
var origName = file.Name; var origName = file.Name;
var finalPath = filedir + "/" + origName.ToLower(); var finalPath = filedir + "/" + origName.ToLower();
file.MoveTo(filedir + "/" + file.Name + "_"); file.MoveTo(filedir + "/" + file.Name + "_");
if (File.Exists(finalPath))
File.Delete(finalPath); File.Delete(finalPath);
file.MoveTo(finalPath); file.MoveTo(finalPath);
} }
@ -683,7 +682,6 @@ public static class Profile
// Extra file cleanup // Extra file cleanup
string apkEndPath = $"{CrossPlatformOperations.CurrentPath}/{profile.Name}.apk"; string apkEndPath = $"{CrossPlatformOperations.CurrentPath}/{profile.Name}.apk";
if (File.Exists(apkEndPath))
File.Delete(apkEndPath); File.Delete(apkEndPath);
File.Move($"{tempDir}/{profile.Name}-aligned-debugSigned.apk", apkEndPath); File.Move($"{tempDir}/{profile.Name}-aligned-debugSigned.apk", apkEndPath);
log.Info($"{profile.Name}.apk signed and moved to {CrossPlatformOperations.CurrentPath}/{profile.Name}.apk."); log.Info($"{profile.Name}.apk signed and moved to {CrossPlatformOperations.CurrentPath}/{profile.Name}.apk.");

Loading…
Cancel
Save