summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 15:25:53 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 15:25:53 +1100
commitcd2c60f0618952958f36612115d3c66e957487c8 (patch)
treedf3574aeaf4766842be80ee0facdad76aa13aeee
parentbetter popup window (diff)
downloadcaelestia-shell-cd2c60f0618952958f36612115d3c66e957487c8.tar.gz
caelestia-shell-cd2c60f0618952958f36612115d3c66e957487c8.tar.bz2
caelestia-shell-cd2c60f0618952958f36612115d3c66e957487c8.zip
launcher: fix files flicker on change to empty
Also no need for window halign and valign
-rw-r--r--modules/launcher.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/launcher.tsx b/modules/launcher.tsx
index b212b85..a35f85a 100644
--- a/modules/launcher.tsx
+++ b/modules/launcher.tsx
@@ -278,7 +278,6 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> })
.finally(updateEmpty);
self.hook(entry, "activate", () => {
- if (!entry.text) return;
if (mode.get() === "math") {
if (entry.text.startsWith("clear")) Math.get_default().clear();
else Math.get_default().commit();
@@ -289,7 +288,7 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> })
if (!entry.text && mode.get() === "apps") return;
// Files has delay cause async so it does some stuff by itself
- const ignoreFileAsync = !entry.text || entry.text.startsWith(">") || mode.get() !== "files";
+ const ignoreFileAsync = entry.text.startsWith(">") || mode.get() !== "files";
if (ignoreFileAsync) self.foreach(ch => ch.destroy());
if (entry.text.startsWith(">")) {
@@ -372,8 +371,6 @@ export default class Launcher extends Widget.Window {
return true;
}
},
- halign: Gtk.Align.CENTER,
- valign: Gtk.Align.START,
child: <LauncherContent mode={mode} showResults={showResults} entry={entry} />,
})
);