File tree Expand file tree Collapse file tree
shell-launcher-applet/package Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,9 +159,10 @@ void LauncherController::hideWithTimer()
159159 m_pendingHide = true ;
160160 return ;
161161 }
162-
163- qDebug () << " hide with timer" ;
164- setVisible (false );
162+ if (m_avoidHide) {
163+ qDebug () << " hide with timer" ;
164+ setVisible (false );
165+ }
165166 }
166167}
167168
@@ -183,3 +184,8 @@ void LauncherController::closeAllPopups()
183184 Q_ASSERT (qAppPrivate);
184185 qAppPrivate->closeAllPopups ();
185186}
187+
188+ void LauncherController::setAvoidHide (bool avoidHide)
189+ {
190+ m_avoidHide = avoidHide;
191+ }
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class LauncherController : public QObject
4747 void setCurrentFrame (const QString & frame);
4848
4949 Q_INVOKABLE void hideWithTimer ();
50+ Q_INVOKABLE void setAvoidHide (bool avoidHide);
5051 Q_INVOKABLE void cancelHide ();
5152 Q_INVOKABLE QFont adjustFontWeight (const QFont& f, QFont::Weight weight);
5253
@@ -81,4 +82,5 @@ class LauncherController : public QObject
8182 bool m_visible;
8283 QString m_currentFrame;
8384 bool m_pendingHide = false ;
85+ bool m_avoidHide = true ;
8486};
Original file line number Diff line number Diff line change @@ -126,7 +126,12 @@ Loader {
126126 enabled: ! root .desktopId .startsWith (" internal/folders/" ) && ! DesktopIntegration .appIsCompulsoryForDesktop (root .desktopId )
127127 text: qsTr (" Uninstall" )
128128 onTriggered: {
129- LauncherController .visible = false
129+ if (LauncherController .currentFrame !== " FullscreenFrame" ){
130+ LauncherController .setAvoidHide (true )
131+ LauncherController .visible = false
132+ }else {
133+ LauncherController .setAvoidHide (false )
134+ }
130135 confirmUninstallDlg .appName = root .display
131136 confirmUninstallDlg .appId = root .desktopId
132137 confirmUninstallDlg .icon = root .iconName
Original file line number Diff line number Diff line change @@ -291,6 +291,16 @@ AppletItem {
291291 minimumHeight: layout .implicitHeight + DStyle .Style .dialogWindow .titleBarHeight
292292 maximumWidth: minimumWidth
293293 maximumHeight: minimumHeight
294+
295+ onVisibleChanged: {
296+ if (! visible) {
297+ LauncherController .setAvoidHide (true )
298+ if (LauncherController .currentFrame === " FullscreenFrame" ) {
299+ fullscreenFrame .requestActivate ()
300+ }
301+ }
302+ }
303+
294304 ColumnLayout {
295305 id: layout
296306 spacing: 0
You can’t perform that action at this time.
0 commit comments