添加APT的安装菜单提示,修改安装方法使之返回Ignored

This commit is contained in:
RigoLigoRLC 2022-02-13 21:24:49 +08:00
parent 2221d5c816
commit 28e2c0d082
2 changed files with 6 additions and 2 deletions

@ -5,7 +5,11 @@
SpkPkgMgrApt::SpkPkgMgrApt(QObject *parent) :
SpkPkgMgrBase(parent)
{
mActDesc = new QAction("Debian APT", this);
mActDesc->setDisabled(true);
mMenu->addSeparator();
mMenu->addAction(mActDesc);
}
bool SpkPkgMgrApt::DetectRequirements()
@ -17,7 +21,7 @@ bool SpkPkgMgrApt::DetectRequirements()
SpkPkgMgrBase::PkgInstallResult
SpkPkgMgrApt::ExecuteInstallation(QString pkgPath, int entryId)
{
return SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
}

@ -24,5 +24,5 @@ bool SpkPkgMgrPacman::DetectRequirements()
SpkPkgMgrBase::PkgInstallResult
SpkPkgMgrPacman::ExecuteInstallation(QString pkgPath, int entryId)
{
SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
return SpkPkgMgrBase::ExecuteInstallation(pkgPath, entryId);
}