Commit be4a9d17 authored by Ramon Buldó's avatar Ramon Buldó
Browse files

Proper name for extended support kernels

parent 39d28cc4
......@@ -469,7 +469,7 @@ QStringList Global::getLtsKernels()
return QStringList() << "linux310" << "linux312" << "linux314" << "linux318";
}
QStringList Global::getEssKernels()
QStringList Global::getSesKernels()
{
return QStringList() << "linux313" << "linux316";
}
......
......@@ -79,7 +79,7 @@ public:
static QString getRunningKernel();
static QStringList getLtsKernels();
static QStringList getEssKernels();
static QStringList getSesKernels();
static QStringList getRecommendedKernels();
static QByteArray performQuery(const QStringList args);
......
......@@ -86,7 +86,6 @@ void KernelListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem
painter->drawText(packageRect, Qt::TextSingleLine, package);
/* draw middle labels */
//QString ltsStr(tr("LTS"));
QString recommendedStr(tr("Recommended"));
QString runningStr(tr("Running"));
QString installedStr(tr("Installed"));
......
......@@ -51,7 +51,7 @@ void KernelModel::update()
QString runningKernel = Global::getRunningKernel();
QStringList ltsKernels = Global::getLtsKernels();
QStringList essKernels = Global::getEssKernels();
QStringList sesKernels = Global::getSesKernels();
QStringList recommendedKernels = Global::getRecommendedKernels();
QSet<QString> modulesToInstall;
......@@ -87,9 +87,9 @@ void KernelModel::update()
if (ltsKernels.contains(kernel)) {
newKernel.setLts(true);
newKernel.setLtsString("LTS");
} else if (essKernels.contains(kernel)) {
} else if (sesKernels.contains(kernel)) {
newKernel.setLts(true);
newKernel.setLtsString("ESS");
newKernel.setLtsString("SES");
}
newKernel.setRecommended(recommendedKernels.contains(kernel));
newKernel.setRunning(QString::compare(runningKernel, kernel) == 0);
......
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