mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-10-23 09:42:23 +00:00
ui: QR sharing overlay + Share My QR header on Contacts tab
Adds an lxma://<hash>:<pubkey> QR overlay reachable from Settings and from a new header row at the top of the Contacts tab. Including the public key lets Columba/Sideband skip the PENDING_IDENTITY round-trip. Contacts list stays visible even with no saved contacts so the header row is always reachable; the empty-state floats above it.
This commit is contained in:
1 parent
00782336f3
commit
d9c92abf6c
8 files changed
+187
-8
No files matched your search
@@ -957,6 +957,18 @@ void LvSettingsScreen::buildItems() {
|
||||
_items.push_back(announceItem);
|
||||
idx++;
|
||||
}
|
||||
{
|
||||
SettingItem showQrItem;
|
||||
showQrItem.label = "Show QR Code";
|
||||
showQrItem.type = SettingType::ACTION;
|
||||
showQrItem.formatter = [](int) { return String("[Enter]"); };
|
||||
showQrItem.action = [this]() {
|
||||
if (_showQrCb) _showQrCb();
|
||||
else if (_ui) _ui->lvStatusBar().showToast("QR not available");
|
||||
};
|
||||
_items.push_back(showQrItem);
|
||||
idx++;
|
||||
}
|
||||
{
|
||||
SettingItem initSD;
|
||||
initSD.label = "Format SD Card";
|
||||
|
||||
Reference in new issue
Block a user