Skip to content

Commit 2781241

Browse files
committed
Merge branch '0.8.1.0-dev' of https://github.com/rcmaehl/MSEdgeRedirect into 0.8.1.0-dev
2 parents db10d5d + b29f88d commit 2781241

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

MSEdgeRedirect_Wrapper.au3

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
Global $sVersion
2929
Global $bIsPriv = _IsDestinationRestricted()
30-
Global Enum $bNoApps, $bNoBing, $bNoChat, $bNoFeed, $bNoImgs, $bNoMSN, $bNoNews, $bNoPDFs, $bNoPilot, $bNoSpotlight, $bNoTray, $bNoUpdates, $sFeed, $sFeedPath, $sImages, $sImagePath, $sNews, $sPDFApp, $sSearch, $sSearchPath, $sSMRefesh, $sStartMenu, $bStartup, $sWeather, $sWeatherPath
30+
Global Enum $bNoApps, $bNoBing, $bNoChat, $bNoFeed, $bNoImgs, $bNoMSN, $bNoNews, $bNoPDFs, $bNoPilot, $bNoSpotlight, $bNoTray, $bNoUpdates, $sFeed, $sFeedPath, $sImages, $sImagePath, $sNews, $sPDFApp, $sSearch, $sSearchPath, $iSMRefesh, $sStartMenu, $bStartup, $sWeather, $sWeatherPath
3131

3232
If @Compiled Then
3333
$sVersion = FileGetVersion(@ScriptFullPath)
@@ -80,7 +80,7 @@ Func RunInstall(ByRef $aConfig, ByRef $aSettings, $bSilent = False)
8080
_SetSettingValue("PDFApp" , $aSettings[$sPDFApp] , $sLocation)
8181
_SetSettingValue("Search" , $aSettings[$sSearch] , $sLocation)
8282
_SetSettingValue("SearchPath" , $aSettings[$sSearchPath] , $sLocation)
83-
_SetSettingValue("SMRefresh" , $aSettings[$sSMRefesh] , $sLocation)
83+
_SetSettingValue("SMRefresh" , $aSettings[$iSMRefesh] , $sLocation)
8484
_SetSettingValue("Weather" , $aSettings[$sWeather] , $sLocation)
8585
_SetSettingValue("WeatherPath", $aSettings[$sWeatherPath], $sLocation)
8686

@@ -327,7 +327,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
327327
$aSettings[$bNoSpotlight] = _GetSettingValue("NoSpotlight")
328328
$aSettings[$bNoTray] = _GetSettingValue("NoTray")
329329
$aSettings[$bNoUpdates] =_GetSettingValue("NoUpdates")
330-
$aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh")
330+
$aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh")
331331
If $aSettings[$bNoBing] Then
332332
$aSettings[$sSearch] = _GetSettingValue("Search")
333333
$aSettings[$sSearchPath] = _GetSettingValue("SearchPath")
@@ -383,7 +383,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
383383
$aSettings[$sPDFApp] = _GetSettingValue("PDFApp", "String", $aConfig[$hFile])
384384
$aSettings[$sSearch] = _GetSettingValue("Search", "String", $aConfig[$hFile])
385385
$aSettings[$sSearchPath] = _GetSettingValue("SearchPath", "String", $aConfig[$hFile])
386-
$aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile])
386+
$aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile])
387387
$aSettings[$sStartMenu] = _GetSettingValue("StartMenu", "String", $aConfig[$hFile])
388388
$aSettings[$bStartup] = _GetSettingValue("Startup", "Bool", $aConfig[$hFile])
389389
$aSettings[$sWeather] = _GetSettingValue("Weather", "String", $aConfig[$hFile])
@@ -660,6 +660,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
660660
Local $hRefresh = GUICtrlCreateInput("100", 110, 120, 50, 20, $ES_NUMBER+$ES_RIGHT)
661661
GUICtrlCreateUpdown($hRefresh)
662662
GUICtrlSetLimit(-1, 2000, 100)
663+
GUICtrlSetData(-1, $iSMRefesh)
663664
Local $hNoIcon = GUICtrlCreateCheckbox("Hide Tray Icon", 170, 120, 120, 20)
664665
GUICtrlSetState(-1, $aSettings[$bNoTray])
665666
Local $hStartup = GUICtrlCreateCheckbox("Start w/ Windows", 300, 120, 120, 20)
@@ -988,7 +989,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
988989
$aSettings[$sPDFApp] = $sHandler
989990
$aSettings[$sSearch] = GUICtrlRead($hEngine)
990991
$aSettings[$sSearchPath] = $sEngine
991-
$aSettings[$sSMRefesh] = GUICtrlRead($hRefresh)
992+
$aSettings[$iSMRefesh] = GUICtrlRead($hRefresh)
992993
$aSettings[$bStartup] = _IsChecked($hStartup)
993994
$aSettings[$sWeather] = GUICtrlRead($hWeather)
994995
$aSettings[$sWeatherPath] = $sWeatherEng
@@ -1159,6 +1160,14 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
11591160
EndIf
11601161
Next
11611162

1163+
Case $hMsg = $hRefresh
1164+
Switch GUICtrlRead($hRefresh)
1165+
Case 0 To 999
1166+
GUICtrlSetData($hRefresh, 100)
1167+
Case 2001 To 9999
1168+
GUICtrlSetData($hRefresh, 2000)
1169+
EndSwitch
1170+
11621171
Case $hMsg = $hSearch
11631172
If _IsChecked($hSearch) Then
11641173
GUICtrlSetState($hEngine, $GUI_ENABLE)

0 commit comments

Comments
 (0)