Skip to content

Commit e8e0af4

Browse files
committed
Removed broken backup code, related to #9.
1 parent dbfe17a commit e8e0af4

File tree

2 files changed

+3
-42
lines changed

2 files changed

+3
-42
lines changed

mDesktop.ahk

+1-40
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ If !fileexist(settings)
121121
IniWrite , 4, %settings%, Settings, numdesks
122122
IniWrite , !, %settings%, Settings, switchMod
123123
IniWrite , ^!, %settings%, Settings, sendmod
124-
IniWrite , 0, %settings%, Settings, crash
125124
IniWrite , %a_space%, %settings%, Settings, windowsOnAll
126125
IniWrite , 1, %settings%, Settings, desktopcircle
127126
}
@@ -132,7 +131,6 @@ IniRead , prevhotkey, %settings%, Settings, switchprev, ^#LEFT
132131
IniRead , numDesktops, %settings%, Settings, numdesks, 4
133132
IniRead , switchModifier, %settings%, Settings, switchmod, !
134133
IniRead , sendModifier, %settings%, Settings, sendmod, ^!
135-
IniRead , crash, %settings%, Settings, crash
136134
IniRead , windowsOnAll, %settings%, Settings, windowsOnAll
137135
IniRead , desktopcircle, %settings%, Settings, desktopcircle
138136

@@ -149,41 +147,6 @@ SysGet, VirtualScreenHeight, 79
149147
SysGet, MonitorCount, MonitorCount
150148

151149

152-
153-
154-
155-
If crash
156-
{
157-
MsgBox, 4, , mDesktop crashed. Would you like to restore lost windows?
158-
159-
IfMsgBox yes
160-
{
161-
FileRead, oldwindows, crash.dat
162-
Loop, Parse, oldwindows, |
163-
{
164-
winshow, ahk_id %A_LoopField%
165-
}
166-
}
167-
168-
}
169-
170-
171-
172-
173-
174-
filedelete, crash.dat
175-
176-
WinGet , backup, List,,, Program Manager
177-
178-
Loop, %backup%
179-
{
180-
id := backup%A_Index%
181-
fileappend,%id%|, crash.dat
182-
}
183-
FileSetAttrib, +h , crash.dat
184-
IniWrite , 1, %settings%, Settings, crash
185-
crash=1
186-
187150
IniRead , runatstartup, %settings%, Settings, runatstartup, 0
188151
Loop %numDesktops%
189152
{
@@ -1596,8 +1559,6 @@ return
15961559

15971560
CleanUp:
15981561
;IniWrite , %hidinglevel%, %settings%, Settings, level
1599-
IniWrite , 0, %settings%, Settings, crash
1600-
filedelete, crash.dat
16011562
Loop , %numDesktops%
16021563
{
16031564
if desktopswitcher
@@ -1628,7 +1589,7 @@ CleanUp:
16281589

16291590
about:
16301591
gui 2:add,text,,mDesktop
1631-
gui 2:add,text,,Version: 1.7.0
1592+
gui 2:add,text,,Version: 1.7.2
16321593
gui 2:add,text,,By: Jason Stallings
16331594
gui 2:add,text,cblue ggourl, github.com/octalmage/mDesktop
16341595
gui 2:add,text,,Enhancements by: Ian Fijolek

mDesktopSetup.nsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RequestExecutionLevel admin
3737

3838
;Name and file
3939
Name "mDesktop"
40-
OutFile "mDesktopSetup1.7.0.exe"
40+
OutFile "mDesktopSetup1.7.2.exe"
4141

4242
;Default installation folder
4343
InstallDir "$PROGRAMFILES\mDesktop"
@@ -119,7 +119,7 @@ SetOutPath "$INSTDIR\icons"
119119
File "icons\10.ico"
120120
;Store installation folder
121121
WriteRegStr HKCU "Software\mDesktop" "" $INSTDIR
122-
WriteRegStr HKCU "Software\mDesktop" "version" "1.7.0"
122+
WriteRegStr HKCU "Software\mDesktop" "version" "1.7.2"
123123

124124
;Create uninstaller
125125
WriteUninstaller "$INSTDIR\Uninstall.exe"

0 commit comments

Comments
 (0)