Show the "Display mnemonic" button only when we know e2e is supported
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 18 Aug 2020 14:35:47 +0000 (16:35 +0200)
committerCamila <hello@camila.codes>
Tue, 18 Aug 2020 15:41:38 +0000 (17:41 +0200)
commit3540f1e460a1d688f59244cc127e97ff4cc59aa9
tree6b5a2199c76fb726f024408cc74d5c35633575ae
parent71fbc65eb05e93a313a2f78c75c7a67ac16cbf51
Show the "Display mnemonic" button only when we know e2e is supported

Turns out that showing the button straight from the page ctor is a bit
too early. At that point the account might not be connected yet and thus
we wouldn't have proper information. Currently we were displaying that
button all the time, now we wait for the account to be connected to
decide to show it or not.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/accountsettings.cpp