mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Basing new zoom value off redux state
https://github.com/laurent22/joplin/pull/2165#discussion_r357441406 https://github.com/laurent22/joplin/pull/2165#discussion_r357441512
This commit is contained in:
parent
7ec15ff4c4
commit
34a1b2dc3e
@ -1001,18 +1001,20 @@ class Application extends BaseApplication {
|
||||
}, {
|
||||
label: _('Zoom In'),
|
||||
click: () => {
|
||||
const currentZoomFactor = this.store().getState().windowContentZoomFactor;
|
||||
this.store().dispatch({
|
||||
type: 'WINDOW_CONTENT_ZOOM_FACTOR_SET',
|
||||
zoomFactor: webFrame.getZoomFactor() + 0.1,
|
||||
zoomFactor: currentZoomFactor + 0.1,
|
||||
});
|
||||
},
|
||||
accelerator: 'CommandOrControl+=',
|
||||
}, {
|
||||
label: _('Zoom Out'),
|
||||
click: () => {
|
||||
const currentZoomFactor = this.store().getState().windowContentZoomFactor;
|
||||
this.store().dispatch({
|
||||
type: 'WINDOW_CONTENT_ZOOM_FACTOR_SET',
|
||||
zoomFactor: webFrame.getZoomFactor() - 0.1,
|
||||
zoomFactor: currentZoomFactor - 0.1,
|
||||
});
|
||||
},
|
||||
accelerator: 'CommandOrControl+-',
|
||||
|
Loading…
Reference in New Issue
Block a user