Skip to content

Commit

Permalink
RestoreDirectory instead of initial so adding things isn't quite so a…
Browse files Browse the repository at this point in the history
…nnoying.
  • Loading branch information
digiwombat committed Apr 30, 2020
1 parent 10dbaf3 commit 0118207
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TalkerMakerDeluxe/EditorWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ private void SaveAsDialog()
{
SaveFileDialog saver = new SaveFileDialog();
saver.Filter = "TalkerMakerDeluxe Database Files (*.json)|*.json|All Files (*.*)|*.*";
saver.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
saver.RestoreDirectory = true;
if (saver.ShowDialog() == true)
{
Console.WriteLine("Saving...");
Expand Down Expand Up @@ -966,7 +966,7 @@ private void OpenHandler(string filename = null)
popSettings.IsOpen = false;
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "TalkerMakerDeluxe Database Files (*.json)|*.json|All Files (*.*)|*.*";
openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
openFileDialog.RestoreDirectory = true;
if (openFileDialog.ShowDialog() == true)
{
try
Expand Down Expand Up @@ -1066,7 +1066,7 @@ private void menuExport_Click(object sender, RoutedEventArgs e)
popSettings.IsOpen = false;
SaveFileDialog saver = new SaveFileDialog();
saver.Filter = "ChatMapper XML File (*.xml)|*.xml|All Files (*.*)|*.*";
saver.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
saver.RestoreDirectory = true;
if (saver.ShowDialog() == true)
{
Console.WriteLine("Saving...");
Expand Down Expand Up @@ -1480,7 +1480,7 @@ private void btnPicturePicker_Click(object sender, RoutedEventArgs e)
Actor chara = lstCharacters.SelectedItem as Actor;
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Image Files (*.png;*.jpeg;*.jpg)|*.png;*.jpeg;*.jpg";
openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
openFileDialog.RestoreDirectory = true;
if (openFileDialog.ShowDialog() == true)
{
chara.picture = openFileDialog.FileName;
Expand Down

0 comments on commit 0118207

Please sign in to comment.