From cd2c60f0618952958f36612115d3c66e957487c8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:25:53 +1100 Subject: launcher: fix files flicker on change to empty Also no need for window halign and valign --- modules/launcher.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') 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 }) .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 }) 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: , }) ); -- cgit v1.2.3-freya