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