Commit cc255c6
committed
Reuse property-pre-set:netvm event for processing default_netvm change
Do not duplicate the check if changing to non-running netvm. But more
importantly, call the property-pre-set event to unset old netvm.
Otherwise setting the new one will fail (property-reset:netvm handler
assumes matching pre-(re)set handler detached old value already).
DO not use property-pre-reset:netvm here, because it can't know the new
value yet (pre-reset is used when changing non-default to default value,
so normally it can check what is the default value at the call time -
but here it wouldn't work because the default value is going to change).
Fixes QubesOS/qubes-issues#101251 parent 74b8cbc commit cc255c6
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1700 | 1700 | | |
1701 | 1701 | | |
1702 | 1702 | | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1715 | 1715 | | |
1716 | 1716 | | |
1717 | 1717 | | |
| |||
0 commit comments