mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-25 11:42:20 +08:00
修复页面索引错位bug
This commit is contained in:
parent
98cf333386
commit
5cc34e7e3d
@ -155,7 +155,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
searchEdit->clearEdit();
|
searchEdit->clearEdit();
|
||||||
} else {
|
} else {
|
||||||
ui->applistpage_1->getSearchList(searchtext);
|
ui->applistpage_1->getSearchList(searchtext);
|
||||||
switchPage(2);
|
switchPage(1);
|
||||||
searchEdit->clearEdit();
|
searchEdit->clearEdit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -184,7 +184,7 @@ void MainWindow::openUrl(QUrl url)
|
|||||||
{
|
{
|
||||||
if (url.toString().startsWith("spk://")) {
|
if (url.toString().startsWith("spk://")) {
|
||||||
ui->appintopage->openUrl(url);
|
ui->appintopage->openUrl(url);
|
||||||
switchPage(3);
|
switchPage(2);
|
||||||
} else {
|
} else {
|
||||||
QDesktopServices::openUrl(url);
|
QDesktopServices::openUrl(url);
|
||||||
}
|
}
|
||||||
@ -229,5 +229,5 @@ void MainWindow::updateUi(int now)
|
|||||||
<< "others";
|
<< "others";
|
||||||
ui->applistpage->getAppList(itemlist[now]);
|
ui->applistpage->getAppList(itemlist[now]);
|
||||||
qDebug() << itemlist[now];
|
qDebug() << itemlist[now];
|
||||||
switchPage(1);
|
switchPage(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user