-
-
Notifications
You must be signed in to change notification settings - Fork 346
disableTrigger() doesn't work on just-created simple trigger group with child trigger #5875
Copy link
Copy link
Closed
Labels
bounty-100see https://wiki.mudlet.org/w/Bounty_Processsee https://wiki.mudlet.org/w/Bounty_Processbounty-paidThis bounty has been completed & paid outThis bounty has been completed & paid outgood first issue💎 Bounty💰 Rewarded
Description
Brief summary of issue / Description of requested feature:
disableTrigger() doesn't work on just-created simple trigger group with child trigger
Steps to reproduce the issue / Reasons for adding feature:
- Start mudlet.
- Start a clean profile offline. Make sure no alias/trigger/script/variable/timer defined
- Create a script named 'test', paste code below and save to execute
if exists('mygroup', 'trigger') == 0 then
permGroup('mygroup', 'trigger')
end
if exists('mytr', 'trigger') == 0 then
permPromptTrigger('mytr', 'mygroup', '')
end
enableTrigger('mytr')
disableTrigger('mygroup')
debugc("isActive('mygroup', 'trigger')=" .. isActive('mygroup', 'trigger'))
enableTrigger('mygroup')
debugc("isActive('mygroup', 'trigger')=" .. isActive('mygroup', 'trigger'))
Error output / Expected result of feature
Error output: (in error view)
*** starting new session ***
[DEBUG:] isActive('mygroup', 'trigger')=0
[DEBUG:] isActive('mygroup', 'trigger')=0
Expected result: (in error view)
*** starting new session ***
[DEBUG:] isActive('mygroup', 'trigger')=0
[DEBUG:] isActive('mygroup', 'trigger')=1
Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:
- Mudlet 4.14.1
- macOS 11.6
- x86_64
- After steps above, switch to trigger view, the trigger group 'mygroup' shows with a bug icon.
- Select the trigger group 'mygroup', the icon becomes locked icon.
- Switch back to script view, the script would lead to correct result.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bounty-100see https://wiki.mudlet.org/w/Bounty_Processsee https://wiki.mudlet.org/w/Bounty_Processbounty-paidThis bounty has been completed & paid outThis bounty has been completed & paid outgood first issue💎 Bounty💰 Rewarded