Skip to content

Commit

Permalink
fix: can not change boot entry when current boot entry is not in the …
Browse files Browse the repository at this point in the history
…boot list.

移除了:"判断当前默认启动项是否在启动列表中,如果不在则直接返回" 的代码
Issue: linuxdeepin/developer-center#5863
Log: 修复当前默认启动项不在控制中心-通用-启动菜单列表中时,无法通过点击修改默认启动项的问题
  • Loading branch information
hotime authored and deepin-bot[bot] committed Oct 27, 2023
1 parent e01b364 commit 35df290
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugin-commoninfo/window/bootwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ void BootWidget::onCurrentItem(const QModelIndex &curIndex)

// 获取当前被选项
QString selectedText = m_curSelectedIndex.data().toString();
if (selectedText.isEmpty())
return;
// NOTE: If the type of current selected boot entry is submenu whitch is not shown in current boot list, do not care, and do the set action
if (curText != selectedText) {
Q_EMIT defaultEntry(curText);
}
Expand Down

0 comments on commit 35df290

Please sign in to comment.