Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

flatpak: small fixes

fix scope
remove unused method
initialize attribute
parent 88e31595
......@@ -101,8 +101,8 @@ void FlatpakTransactionThread::run()
const QString refName = m_app->ref();
bool correct = false;
if (m_role == Transaction::Role::InstallRole) {
bool correct = false;
if (m_app->state() == AbstractResource::Upgradeable && m_app->isInstalled()) {
correct = flatpak_transaction_add_update(m_transaction,
refName.toUtf8().constData(),
......@@ -151,11 +151,6 @@ void FlatpakTransactionThread::run()
setProgress(100);
}
FlatpakResource * FlatpakTransactionThread::app() const
{
return m_app;
}
void FlatpakTransactionThread::setProgress(int progress)
{
if (m_progress != progress) {
......
......@@ -41,8 +41,6 @@ public:
void cancel();
void run() override;
FlatpakResource * app() const;
int progress() const { return m_progress; }
void setProgress(int progress);
void setSpeed(quint64 speed);
......@@ -58,7 +56,7 @@ Q_SIGNALS:
private:
FlatpakTransaction* m_transaction;
bool m_result;
bool m_result = false;
int m_progress = 0;
quint64 m_speed = 0;
QString m_errorMessage;
......
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