mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
添加APT的安装菜单提示,修改安装方法使之返回Ignored
This commit is contained in:
@@ -5,7 +5,11 @@
|
|||||||
SpkPkgMgrApt::SpkPkgMgrApt(QObject *parent) :
|
SpkPkgMgrApt::SpkPkgMgrApt(QObject *parent) :
|
||||||
SpkPkgMgrBase(parent)
|
SpkPkgMgrBase(parent)
|
||||||
{
|
{
|
||||||
|
mActDesc = new QAction("Debian APT", this);
|
||||||
|
mActDesc->setDisabled(true);
|
||||||
|
|
||||||
|
mMenu->addSeparator();
|
||||||
|
mMenu->addAction(mActDesc);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpkPkgMgrApt::DetectRequirements()
|
bool SpkPkgMgrApt::DetectRequirements()
|
||||||
@@ -17,7 +21,7 @@ bool SpkPkgMgrApt::DetectRequirements()
|
|||||||
SpkPkgMgrBase::PkgInstallResult
|
SpkPkgMgrBase::PkgInstallResult
|
||||||
SpkPkgMgrApt::ExecuteInstallation(QString pkgPath, int entryId)
|
SpkPkgMgrApt::ExecuteInstallation(QString pkgPath, int entryId)
|
||||||
{
|
{
|
||||||
|
return SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ bool SpkPkgMgrPacman::DetectRequirements()
|
|||||||
SpkPkgMgrBase::PkgInstallResult
|
SpkPkgMgrBase::PkgInstallResult
|
||||||
SpkPkgMgrPacman::ExecuteInstallation(QString pkgPath, int entryId)
|
SpkPkgMgrPacman::ExecuteInstallation(QString pkgPath, int entryId)
|
||||||
{
|
{
|
||||||
SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
|
return SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user