BinaryQuantumSoul / sdnext-modernui

SD.Next ModernUI
GNU Affero General Public License v3.0
18 stars 7 forks source link

fix generate & interrupt/skip button observer #2

Closed RotKen closed 7 months ago

RotKen commented 7 months ago

commented out old observer code as SDnext doesn't use the same process during process and would never be called to remove the styles 'disable' & 'active'. which resulted in the interrupt and skip buttons always being active and background pattern over Generate button to never be removed.

New observer code will check for text within the generate button and move to a span, once the process for generation is finished it adds the disable style back to the interrupt/skip buttons and removes the 'active' style from the Generate button.