Remove key binding to open present page
This commit is contained in:
parent
6352fcf639
commit
ed7bd3ddb4
3 changed files with 3 additions and 16 deletions
|
|
@ -15,6 +15,9 @@ Procedure when bumping the version number:
|
|||
|
||||
## Unreleased
|
||||
|
||||
### Removed
|
||||
- Key binding to open present page
|
||||
|
||||
## v0.8.0 - 2024-01-04
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ default_bindings! {
|
|||
pub fn nick => ["n"];
|
||||
pub fn more_messages => ["m"];
|
||||
pub fn account => ["A"];
|
||||
pub fn present => ["ctrl+p"];
|
||||
}
|
||||
|
||||
pub mod tree_cursor {
|
||||
|
|
@ -286,9 +285,6 @@ pub struct RoomAction {
|
|||
/// Manage account.
|
||||
#[serde(default = "default::room_action::account")]
|
||||
pub account: KeyBinding,
|
||||
/// Open room's plugh.de/present page.
|
||||
#[serde(default = "default::room_action::present")]
|
||||
pub present: KeyBinding,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Deserialize, Document)]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue