@@ -18,7 +18,6 @@ if not X.AssertVersion(MODULE_NAME, _L[MODULE_NAME], '^27.0.0') then
1818 return
1919end
2020--[[ #DEBUG BEGIN]] X .ReportModuleLoading (MODULE_PATH , ' START' )--[[ #DEBUG END]]
21- X .RegisterRestriction (' MY_BagEx_GenericFilters' , { remake = true })
2221---- ----------------------------------------------------------------------------
2322
2423local O = X .CreateUserSettingsModule (MODULE_NAME , _L [' General' ], {
@@ -30,7 +29,6 @@ local O = X.CreateUserSettingsModule(MODULE_NAME, _L['General'], {
3029 }),
3130 xSchema = X .Schema .Boolean ,
3231 xDefaultValue = true ,
33- szRestriction = ' MY_BagEx_GenericFilters' ,
3432 },
3533})
3634local D = {}
@@ -417,7 +415,7 @@ local function Unhook()
417415end
418416
419417local function Apply (bEnable )
420- if bEnable and not X . IsRestricted ( ' MY_BagEx_GenericFilters ' ) then
418+ if bEnable then
421419 Hook ()
422420 X .RegisterFrameCreate (' BigBagPanel' , ' MY_BAGEX' , Hook )
423421 X .RegisterFrameCreate (' BigBankPanel' , ' MY_BAGEX' , Hook )
@@ -456,18 +454,15 @@ end)
456454end
457455
458456function D .OnPanelActivePartial (ui , nPaddingX , nPaddingY , nW , nH , nX , nY , nLH )
459- if not X .IsRestricted (' MY_BagEx_GenericFilters' ) then
460- nX = nX + ui :Append (' WndCheckBox' , {
461- x = nX , y = nY , w = 200 ,
462- text = _L [' Generic package searcher and filters' ],
463- checked = O .bEnable ,
464- onCheck = function (bChecked )
465- D .Enable (bChecked )
466- end ,
467- }):AutoWidth ():Width () + 5
468- nX = nPaddingX
469- nY = nY + nLH
470- end
457+ nX = nX + ui :Append (' WndCheckBox' , {
458+ x = nX , y = nY , w = 200 ,
459+ text = _L [' Generic package searcher and filters' ],
460+ checked = O .bEnable ,
461+ onCheck = function (bChecked )
462+ D .Enable (bChecked )
463+ end ,
464+ }):AutoWidth ():Width () + 5
465+ -- y = y + 25
471466 return nX , nY
472467end
473468
0 commit comments