kgpg: set GPG offline to true

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-03-15 07:50:20 +02:00
parent 71170c411c
commit 03f8a1ef07
2 changed files with 4 additions and 3 deletions

View file

@ -48,6 +48,7 @@ KGPG::KGPG(QWidget *parent)
}
m_release = true;
gpgme_set_offline(m_gpgctx, 1);
gpgme_set_pinentry_mode(m_gpgctx, GPGME_PINENTRY_MODE_LOOPBACK); // for password callback
gpgme_set_passphrase_cb(m_gpgctx, KGPG::gpgPasswordCallback, this);
gpgme_set_progress_cb(m_gpgctx, KGPG::gpgProgressCallback, this);

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>388</width>
<height>407</height>
<height>364</height>
</rect>
</property>
<property name="windowTitle">
@ -56,8 +56,8 @@
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>