mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-16 02:22:22 +08:00
添加APT的安装菜单提示,修改安装方法使之返回Ignored
This commit is contained in:
parent
2221d5c816
commit
28e2c0d082
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user