mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-26 06:14:45 +00:00
homescreens/folio: Never open both search and app drawer
This ensures that the search widget and app drawer never simultaneously both get opened.
This commit is contained in:
parent
11a45f94d2
commit
57caf24504
1 changed files with 6 additions and 0 deletions
|
|
@ -680,6 +680,9 @@ QPointF HomeScreenState::getFolderDelegateScreenPosition(int position)
|
||||||
|
|
||||||
void HomeScreenState::openAppDrawer()
|
void HomeScreenState::openAppDrawer()
|
||||||
{
|
{
|
||||||
|
// Ensure search widget is closed when app drawer opens
|
||||||
|
closeSearchWidget();
|
||||||
|
|
||||||
cancelAppDrawerAnimations();
|
cancelAppDrawerAnimations();
|
||||||
m_openAppDrawerAnim->setStartValue(m_appDrawerY);
|
m_openAppDrawerAnim->setStartValue(m_appDrawerY);
|
||||||
m_openAppDrawerAnim->start();
|
m_openAppDrawerAnim->start();
|
||||||
|
|
@ -694,6 +697,9 @@ void HomeScreenState::closeAppDrawer()
|
||||||
|
|
||||||
void HomeScreenState::openSearchWidget()
|
void HomeScreenState::openSearchWidget()
|
||||||
{
|
{
|
||||||
|
// Ensure app drawer is closed when search widget opens
|
||||||
|
closeAppDrawer();
|
||||||
|
|
||||||
cancelSearchWidgetAnimations();
|
cancelSearchWidgetAnimations();
|
||||||
m_openSearchWidgetAnim->setStartValue(m_searchWidgetY);
|
m_openSearchWidgetAnim->setStartValue(m_searchWidgetY);
|
||||||
m_openSearchWidgetAnim->start();
|
m_openSearchWidgetAnim->start();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue