updates to work properly under single file

This commit is contained in:
Royce551 2021-08-21 16:31:59 -05:00
parent 3ae5aac25e
commit 2791912593

View file

@ -165,7 +165,7 @@ namespace FRESHMusicPlayer.ViewModels
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime lifeTime)
{
lifeTime.Shutdown();
Process.Start(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "FRESHMusicPlayer"));
Process.Start(Path.Combine(Path.GetDirectoryName(System.AppContext.BaseDirectory), "FRESHMusicPlayer"));
}
}