添加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 -1
View File
@@ -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);
} }
+1 -1
View File
@@ -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);
} }