From 943b4dcb5fa597264f13f2d0cfa305f4dd542dbe Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Fri, 18 Aug 2017 20:41:45 +0100 Subject: Wordpad Save, Open and Save As --- TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'TimeHACK.Main/OS/Win98') diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs index d111fbe..04f0405 100644 --- a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs @@ -161,7 +161,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { ListViewItem itm; - if (IsFileOpenDialog == true || IsFileSaveDialog == true) + if (IsFileOpenDialog || IsFileSaveDialog) { if (!(Path.GetFileName(str) == "_data.info")) { @@ -637,7 +637,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { try { - if (new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == null || new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == "") + if (Directory.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) { // If it isn't a file if (mainView.FocusedItem.Text == "C:") GoToDir(Path.Combine(CurrentDirectory, "CDrive")); -- cgit v1.2.3