Skip to content

Commit

Permalink
Fixed rule groups visibility icon
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 22, 2023
1 parent a2d33b6 commit 991fb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/electron.renderer/ui/modal/panel/EditAllAutoLayerRules.hx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class EditAllAutoLayerRules extends ui.modal.Panel {
editor.ge.emit( LayerRuleGroupCollapseChanged(rg) );
})
.find(".text").text(rg.name).parent()
.find(".collapserIcon").removeClass().addClass("icon").addClass(rg.collapsed ? "collapsed" : "expanded");
.find(".collapserIcon").removeClass().addClass("collapserIcon").addClass(rg.collapsed ? "collapsed" : "expanded");

if( rg.collapsed ) {
jGroup.addClass("collapsed");
Expand Down Expand Up @@ -797,7 +797,7 @@ class EditAllAutoLayerRules extends ui.modal.Panel {
allActive = false;
}

jGroupHeader.find(".ruleActive .collapserIcon")
jGroupHeader.find(".ruleActive .icon")
.addClass( rg.isOptional
? li.isRuleGroupActiveHere(rg) ? "visible" : "hidden"
: li.isRuleGroupActiveHere(rg) ? ( allActive ? "active" : "partial" ) : "inactive"
Expand Down

0 comments on commit 991fb7d

Please # to comment.