Commit b1d6ab8a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

The macaroon dialog will only interact with snap through policykit

parent f364bf80
......@@ -2,7 +2,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-paths.h.cmake ${CMAKE_CURRENT_
ki18n_wrap_ui(SnapMacaroonDialog_SRCS SnapMacaroonDialog.ui)
add_executable(SnapMacaroonDialog SnapMacaroonDialog.cpp ${SnapMacaroonDialog_SRCS})
target_link_libraries(SnapMacaroonDialog Qt5::Network Qt5::Widgets KF5::Auth KF5::I18n Snapd::Core)
target_link_libraries(SnapMacaroonDialog Qt5::Network Qt5::Widgets KF5::Auth KF5::I18n)
install(TARGETS SnapMacaroonDialog DESTINATION ${KDE_INSTALL_LIBEXECDIR}/discover)
add_executable(libsnap_helper SnapAuthHelper.cpp)
......
......@@ -24,8 +24,8 @@
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QTextStream>
#include <KAuthExecuteJob>
#include <Snapd/Client>
#include "ui_SnapMacaroonDialog.h"
class MacaroonDialog : public QDialog
......@@ -34,11 +34,6 @@ public:
MacaroonDialog()
: QDialog()
{
{
auto request = m_client.connect();
request->runSync();
}
m_ui.setupUi(this);
connect(this, &QDialog::accepted, this, &MacaroonDialog::startLogin);
connect(this, &QDialog::rejected, this, []() {
......@@ -94,7 +89,6 @@ public:
}
Ui::SnapMacaroonDialog m_ui;
QSnapdClient m_client;
};
......
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