Remove key binding to open present page

This commit is contained in:
Joscha 2024-01-04 23:50:35 +01:00
parent 6352fcf639
commit ed7bd3ddb4
3 changed files with 3 additions and 16 deletions

View file

@ -15,6 +15,9 @@ Procedure when bumping the version number:
## Unreleased ## Unreleased
### Removed
- Key binding to open present page
## v0.8.0 - 2024-01-04 ## v0.8.0 - 2024-01-04
### Added ### Added

View file

@ -81,7 +81,6 @@ default_bindings! {
pub fn nick => ["n"]; pub fn nick => ["n"];
pub fn more_messages => ["m"]; pub fn more_messages => ["m"];
pub fn account => ["A"]; pub fn account => ["A"];
pub fn present => ["ctrl+p"];
} }
pub mod tree_cursor { pub mod tree_cursor {
@ -286,9 +285,6 @@ pub struct RoomAction {
/// Manage account. /// Manage account.
#[serde(default = "default::room_action::account")] #[serde(default = "default::room_action::account")]
pub account: KeyBinding, pub account: KeyBinding,
/// Open room's plugh.de/present page.
#[serde(default = "default::room_action::present")]
pub present: KeyBinding,
} }
#[derive(Debug, Default, Deserialize, Document)] #[derive(Debug, Default, Deserialize, Document)]

View file

@ -382,18 +382,6 @@ impl EuphRoom {
_ => {} _ => {}
} }
// Always applicable
if event.matches(&keys.room.action.present) {
let link = format!("https://plugh.de/present/{}/", self.name());
if let Err(error) = open::that(&link) {
self.popups.push_front(RoomPopup::Error {
description: format!("Failed to open link: {link}"),
reason: format!("{error}"),
});
}
return true;
}
false false
} }