mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 06:28:11 +08:00
Fix 'Zoom with Scroll' not working after a page refresh (#1807)
* Fix 'Zoom with Scroll' not working after a page refresh * Add semicolon --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
84d72621e5
commit
4cd11448a0
@@ -75,6 +75,7 @@ impl PreferencesDialogMessageHandler {
|
|||||||
LayoutGroup::Row { widgets: imaginate_refresh_frequency },
|
LayoutGroup::Row { widgets: imaginate_refresh_frequency },
|
||||||
]))
|
]))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn send_layout(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget, preferences: &PreferencesMessageHandler) {
|
pub fn send_layout(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget, preferences: &PreferencesMessageHandler) {
|
||||||
responses.add(LayoutMessage::SendLayout {
|
responses.add(LayoutMessage::SendLayout {
|
||||||
layout: self.layout(preferences),
|
layout: self.layout(preferences),
|
||||||
@@ -85,6 +86,7 @@ impl PreferencesDialogMessageHandler {
|
|||||||
fn layout_column_2(&self) -> Layout {
|
fn layout_column_2(&self) -> Layout {
|
||||||
Layout::default()
|
Layout::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn send_layout_column_2(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget) {
|
fn send_layout_column_2(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget) {
|
||||||
responses.add(LayoutMessage::SendLayout {
|
responses.add(LayoutMessage::SendLayout {
|
||||||
layout: self.layout_column_2(),
|
layout: self.layout_column_2(),
|
||||||
@@ -108,6 +110,7 @@ impl PreferencesDialogMessageHandler {
|
|||||||
|
|
||||||
Layout::WidgetLayout(WidgetLayout::new(vec![LayoutGroup::Row { widgets }]))
|
Layout::WidgetLayout(WidgetLayout::new(vec![LayoutGroup::Row { widgets }]))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn send_layout_buttons(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget) {
|
fn send_layout_buttons(&self, responses: &mut VecDeque<Message>, layout_target: LayoutTarget) {
|
||||||
responses.add(LayoutMessage::SendLayout {
|
responses.add(LayoutMessage::SendLayout {
|
||||||
layout: self.layout_buttons(),
|
layout: self.layout_buttons(),
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ impl MessageHandler<PreferencesMessage, ()> for PreferencesMessageHandler {
|
|||||||
responses.add(PortfolioMessage::ImaginateServerHostname);
|
responses.add(PortfolioMessage::ImaginateServerHostname);
|
||||||
responses.add(PortfolioMessage::ImaginateCheckServerStatus);
|
responses.add(PortfolioMessage::ImaginateCheckServerStatus);
|
||||||
responses.add(PortfolioMessage::ImaginatePreferences);
|
responses.add(PortfolioMessage::ImaginatePreferences);
|
||||||
|
responses.add(PreferencesMessage::ModifyLayout {
|
||||||
|
zoom_with_scroll: self.zoom_with_scroll,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PreferencesMessage::ResetToDefaults => {
|
PreferencesMessage::ResetToDefaults => {
|
||||||
|
|||||||
Reference in New Issue
Block a user