From 21320c8f96c2833860203a9df50e5f6afd7305b9 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Wed, 31 May 2017 09:23:32 +0100 Subject: Fixed taskbar bug.............. again......... --- .../Win95/Win95Apps/WinClassicWindowsExplorer.cs | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs') diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs index 0cd2510..6ad1bb1 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs @@ -63,24 +63,22 @@ namespace TimeHACK.OS.Win95.Win95Apps String ReadDataFile(String reqDirectory, Boolean returnYesIfProtected = false) { String Val = ""; - try - { - String directoryFileInfo; - directoryFileInfo = File.ReadAllText(reqDirectory); - FileSystemFolderInfo toRead = new FileSystemFolderInfo(); - toRead = JsonConvert.DeserializeObject(directoryFileInfo); + String directoryFileInfo; + directoryFileInfo = File.ReadAllText(reqDirectory); + FileSystemFolderInfo toRead = new FileSystemFolderInfo(); + toRead = JsonConvert.DeserializeObject(directoryFileInfo); - if (returnYesIfProtected == true) + MessageBox.Show(toRead.label); + if (returnYesIfProtected == true) + { + if (toRead.Isprotected == true) { - if (toRead.Isprotected == true) - { - return "yes"; - } - } else { - return toRead.label; + return "yes"; } - } catch (Exception ex) { - + } + else + { + return toRead.label; } return Val; } -- cgit v1.2.3