@@ -20,6 +20,7 @@ aLastSync = 0
2020aResources = {}
2121
2222local serverPassword = ' None'
23+ local hasResourceSetting
2324
2425function guiComboBoxAdjustHeight ( combobox , itemcount )
2526 if getElementType ( combobox ) ~= " gui-combobox" or type ( itemcount ) ~= " number" then error ( " Invalid arguments @ 'guiComboBoxAdjustHeight'" , 2 ) end
970971function aClientDoubleClick ( button )
971972 if ( source == aTab2 .ResourceList ) then
972973 if ( guiGridListGetSelectedItem ( aTab2 .ResourceList ) ~= - 1 ) then
973- aManageSettings ( guiGridListGetItemText ( aTab2 .ResourceList , guiGridListGetSelectedItem ( aTab2 .ResourceList ), 1 ) )
974+ if hasResourceSetting then
975+ aManageSettings ( guiGridListGetItemText ( aTab2 .ResourceList , guiGridListGetSelectedItem ( aTab2 .ResourceList ), 1 ) )
976+ end
974977 end
975978 elseif ( source == aTab4 .BansList ) then
976979 if ( guiGridListGetSelectedItem ( aTab4 .BansList ) == - 1 ) then
@@ -1198,7 +1201,8 @@ function aClientClick ( button )
11981201end
11991202
12001203addEvent (" setVisibilityOfSettingsButton" , true )
1201- function setVisibilityOfSettingsButton (hasResourceSetting )
1204+ function setVisibilityOfSettingsButton (showResourceSetting )
1205+ hasResourceSetting = showResourceSetting
12021206 if hasResourceSetting then
12031207 guiSetVisible (aTab2 .ResourceSettings , true )
12041208 else
0 commit comments