From ef09525b70c0e5000deee3ae8a101d387bf989a3 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Thu, 26 May 2016 19:11:01 -0400 Subject: 0.1.1 was released - time to update the repo. --- source/WindowsFormsApplication1/DesktopIcon.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'source/WindowsFormsApplication1/DesktopIcon.cs') diff --git a/source/WindowsFormsApplication1/DesktopIcon.cs b/source/WindowsFormsApplication1/DesktopIcon.cs index d0523d2..bfb0940 100644 --- a/source/WindowsFormsApplication1/DesktopIcon.cs +++ b/source/WindowsFormsApplication1/DesktopIcon.cs @@ -7,6 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.IO; namespace ShiftOS { @@ -48,10 +49,18 @@ namespace ShiftOS public string LuaAction = "open_program(\"shiftorium\")"; private void Icon_Click(object sender, EventArgs e) { - var li = new LuaInterpreter(); - li.mod(LuaAction); - lbiconname.BackColor = Color.White; - t.Start(); + if (File.Exists(Paths.Desktop + IconName)) + { + var fs = new File_Skimmer(); + fs.OpenFile(Paths.Desktop + IconName); + } + else + { + var li = new LuaInterpreter(); + li.mod(LuaAction); + lbiconname.BackColor = Color.White; + t.Start(); + } } public Timer t = new Timer(); -- cgit v1.2.3