Skip to content

Commit

Permalink
Removed broken backup code, related to #9.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Sep 8, 2014
1 parent dbfe17a commit e8e0af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
41 changes: 1 addition & 40 deletions mDesktop.ahk
Expand Up @@ -121,7 +121,6 @@ If !fileexist(settings)
IniWrite , 4, %settings%, Settings, numdesks
IniWrite , !, %settings%, Settings, switchMod
IniWrite , ^!, %settings%, Settings, sendmod
IniWrite , 0, %settings%, Settings, crash
IniWrite , %a_space%, %settings%, Settings, windowsOnAll
IniWrite , 1, %settings%, Settings, desktopcircle
}
Expand All @@ -132,7 +131,6 @@ IniRead , prevhotkey, %settings%, Settings, switchprev, ^#LEFT
IniRead , numDesktops, %settings%, Settings, numdesks, 4
IniRead , switchModifier, %settings%, Settings, switchmod, !
IniRead , sendModifier, %settings%, Settings, sendmod, ^!
IniRead , crash, %settings%, Settings, crash
IniRead , windowsOnAll, %settings%, Settings, windowsOnAll
IniRead , desktopcircle, %settings%, Settings, desktopcircle

Expand All @@ -149,41 +147,6 @@ SysGet, VirtualScreenHeight, 79
SysGet, MonitorCount, MonitorCount





If crash
{
MsgBox, 4, , mDesktop crashed. Would you like to restore lost windows?

IfMsgBox yes
{
FileRead, oldwindows, crash.dat
Loop, Parse, oldwindows, |
{
winshow, ahk_id %A_LoopField%
}
}

}





filedelete, crash.dat

WinGet , backup, List,,, Program Manager

Loop, %backup%
{
id := backup%A_Index%
fileappend,%id%|, crash.dat
}
FileSetAttrib, +h , crash.dat
IniWrite , 1, %settings%, Settings, crash
crash=1

IniRead , runatstartup, %settings%, Settings, runatstartup, 0
Loop %numDesktops%
{
Expand Down Expand Up @@ -1596,8 +1559,6 @@ return

CleanUp:
;IniWrite , %hidinglevel%, %settings%, Settings, level
IniWrite , 0, %settings%, Settings, crash
filedelete, crash.dat
Loop , %numDesktops%
{
if desktopswitcher
Expand Down Expand Up @@ -1628,7 +1589,7 @@ CleanUp:

about:
gui 2:add,text,,mDesktop
gui 2:add,text,,Version: 1.7.0
gui 2:add,text,,Version: 1.7.2
gui 2:add,text,,By: Jason Stallings
gui 2:add,text,cblue ggourl, github.com/octalmage/mDesktop
gui 2:add,text,,Enhancements by: Ian Fijolek
Expand Down
4 changes: 2 additions & 2 deletions mDesktopSetup.nsi
Expand Up @@ -37,7 +37,7 @@ RequestExecutionLevel admin

;Name and file
Name "mDesktop"
OutFile "mDesktopSetup1.7.0.exe"
OutFile "mDesktopSetup1.7.2.exe"

;Default installation folder
InstallDir "$PROGRAMFILES\mDesktop"
Expand Down Expand Up @@ -119,7 +119,7 @@ SetOutPath "$INSTDIR\icons"
File "icons\10.ico"
;Store installation folder
WriteRegStr HKCU "Software\mDesktop" "" $INSTDIR
WriteRegStr HKCU "Software\mDesktop" "version" "1.7.0"
WriteRegStr HKCU "Software\mDesktop" "version" "1.7.2"

;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
Expand Down

0 comments on commit e8e0af4

Please sign in to comment.