mirror of
https://github.com/4sval/FModel.git
synced 2026-09-12 11:36:39 -05:00
Small gamechange issue fix
This commit is contained in:
@@ -255,8 +255,10 @@ namespace FModel
|
|||||||
var launcher = new FLauncher();
|
var launcher = new FLauncher();
|
||||||
if ((bool)launcher.ShowDialog())
|
if ((bool)launcher.ShowDialog())
|
||||||
{
|
{
|
||||||
|
string currentvalue = Properties.Settings.Default.PakPath;
|
||||||
Properties.Settings.Default.PakPath = launcher.Path;
|
Properties.Settings.Default.PakPath = launcher.Path;
|
||||||
|
if (Properties.Settings.Default.PakPath != currentvalue)
|
||||||
|
{
|
||||||
DarkMessageBoxHelper.Show(Properties.Resources.PathChangedRestart, Properties.Resources.PathChanged, MessageBoxButton.OK, MessageBoxImage.Information);
|
DarkMessageBoxHelper.Show(Properties.Resources.PathChangedRestart, Properties.Resources.PathChanged, MessageBoxButton.OK, MessageBoxImage.Information);
|
||||||
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[Restarting]", "Path(s) changed");
|
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[Restarting]", "Path(s) changed");
|
||||||
|
|
||||||
@@ -264,6 +266,13 @@ namespace FModel
|
|||||||
Process.Start(Process.GetCurrentProcess().MainModule.FileName);
|
Process.Start(Process.GetCurrentProcess().MainModule.FileName);
|
||||||
Application.Current.Shutdown();
|
Application.Current.Shutdown();
|
||||||
}
|
}
|
||||||
|
// well totally not needed but saving again just incase ..
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Properties.Settings.Default.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private void FModel_MI_Help_Trello_Click(object sender, RoutedEventArgs e) => Process.Start(new ProcessStartInfo { FileName = "https://trello.com/b/DfmzkVQB/fmodel", UseShellExecute = true });
|
private void FModel_MI_Help_Trello_Click(object sender, RoutedEventArgs e) => Process.Start(new ProcessStartInfo { FileName = "https://trello.com/b/DfmzkVQB/fmodel", UseShellExecute = true });
|
||||||
private void FModel_MI_Help_Donate_Click(object sender, RoutedEventArgs e) => Process.Start(new ProcessStartInfo { FileName = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EP9SSWG8MW4UC&source=url", UseShellExecute = true });
|
private void FModel_MI_Help_Donate_Click(object sender, RoutedEventArgs e) => Process.Start(new ProcessStartInfo { FileName = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EP9SSWG8MW4UC&source=url", UseShellExecute = true });
|
||||||
|
|||||||
Reference in New Issue
Block a user