Added comment to possibly explain why rofi -e is exiting early

When double clicking
This commit is contained in:
2025-08-19 23:45:49 +01:00
parent 9a8c971d73
commit 6ff0204189
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ EOF
CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION) CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION)
# If you double check the first rofi selection it seems to prevent the error window from popping up # If you double check the first rofi selection it seems to prevent the error window from popping up
# I think this is because it registers the second click as a click outside the window which exits
# the rofi -e message
sleep 0.05 sleep 0.05
rofi -e "$CARD_OUTPUT" rofi -e "$CARD_OUTPUT"

View File

@@ -99,7 +99,7 @@ impl fmt::Display for DbCard {
Some(l) => writeln!(f, "Starting Loyalty: {}", l)?, Some(l) => writeln!(f, "Starting Loyalty: {}", l)?,
None => (), None => (),
} }
writeln!(f, "{}", self.scryfall_uri)?; writeln!(f, "Scryfall URI: {}", self.scryfall_uri)?;
Ok(()) Ok(())
} }
} }