fix window parameter
This commit is contained in:
parent
cde9951101
commit
c9223dcad6
2 changed files with 28 additions and 20 deletions
|
@ -181,6 +181,7 @@ pub struct Config {
|
|||
|
||||
/// If true a normal window instead of a layer shell will be used
|
||||
#[clap(short = 'n', long = "normal-window")]
|
||||
#[serde(default = "default_false")]
|
||||
normal_window: bool,
|
||||
|
||||
/// Set to 'false' to disable images, defaults to true
|
||||
|
@ -477,6 +478,10 @@ impl Config {
|
|||
}
|
||||
}
|
||||
|
||||
fn default_false() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
//
|
||||
// // TODO
|
||||
// // GtkOrientation orientation = config_get_mnemonic(config, "orientation", "vertical", 2, "vertical", "horizontal");
|
||||
|
|
|
@ -424,6 +424,9 @@ fn handle_key_press<T: Clone + 'static>(
|
|||
};
|
||||
|
||||
match keyboard_key {
|
||||
Key::Down => {
|
||||
return Propagation::Stop;
|
||||
}
|
||||
Key::Escape => {
|
||||
if let Err(e) = meta.selected_sender.send(Err(anyhow!("No item selected"))) {
|
||||
log::error!("failed to send message {e}");
|
||||
|
|
Loading…
Add table
Reference in a new issue