Commit 243868f2 authored by Florian Müllner's avatar Florian Müllner Committed by Bastian Ilsø Hougaard

accounts: Add PolariAccount:visible property

Ever since we removed the separate connections dialog in favor of
the room list header popovers in commit 263ff952, it has not been
possible to enable or disable accounts from Polari itself. We would
like to re-expose that functionality again, but nowadays we also
use the disable mechanism to implement undo for account removals.
So in order to "free" the :enabled property, add a separate :visible
property that will be used to show or hide accounts from the UI.
parent 0201af4f
......@@ -158,6 +158,31 @@ class ClientFactory extends Polari.ClientFactory {
const PolariAccount = GObject.registerClass(
class PolariAccount extends Tp.Account {
const PolariAccount = GObject.registerClass({
Properties: {
visible: GObject.ParamSpec.boolean('visible',
GObject.ParamFlags.READWRITE |
}, class PolariAccount extends Tp.Account {
_init(params) {
this._visible = true;
get visible() {
return this._visible;
set visible(value) {
if (this._visible == value)
this._visible = value;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment