[fractal] Fix a bug when trying to go to far in the history with keyboard shortcuts
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Fix a bug when trying to go to far in the history with keyboard shortcuts
- Date: Tue, 14 May 2019 11:43:14 +0000 (UTC)
commit 2e3e1fb6f7a74071f97b4cc0e4ddf40d9dcf64bc
Author: Baptiste Gelez <baptiste gelez xyz>
Date: Sat May 11 15:15:35 2019 +0100
Fix a bug when trying to go to far in the history with keyboard shortcuts
fractal-gtk/src/actions/global.rs | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/fractal-gtk/src/actions/global.rs b/fractal-gtk/src/actions/global.rs
index f3c27afb..69d6cc19 100644
--- a/fractal-gtk/src/actions/global.rs
+++ b/fractal-gtk/src/actions/global.rs
@@ -189,16 +189,12 @@ pub fn new(app: >k::Application, op: &Arc<Mutex<AppOp>>) {
}
}));
older_messages.connect_activate(clone!(op => move |_, _| {
- let mut op = op.lock().unwrap();
- if let Some(ref mut hist) = op.history {
- // println!("page up");
+ if let Some(ref mut hist) = op.lock().unwrap().history {
hist.page_up();
}
}));
newer_messages.connect_activate(clone!(op => move |_, _| {
- let mut op = op.lock().unwrap();
- if let Some(ref mut hist) = op.history {
- // println!("page down");
+ if let Some(ref mut hist) = op.lock().unwrap().history {
hist.page_down();
}
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]