Skip to content

Commit 0f2d25d

Browse files
mvollmermartinpitt
authored andcommitted
networking: Emit "changed" event when readonlyness changes
We can't rely on the GetZones call to emit a "changed" event. It might run into an error, such as when the firewall is off. Closes cockpit-project#13703
1 parent 168f819 commit 0f2d25d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/networkmanager/firewall-client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ initFirewalldDbus();
299299
cockpit.spawn(['sh', '-c', 'pkcheck --action-id org.fedoraproject.FirewallD1.all --process $$ --allow-user-interaction 2>&1'], { superuser: "try" })
300300
.done(() => {
301301
firewall.readonly = false;
302+
firewall.debouncedEvent('changed');
302303
firewall.debouncedGetZones();
303304
});
304305

0 commit comments

Comments
 (0)