use storage instead of component state to store the zoom setting

pull/905/head
Brian Jian Zhao 5 years ago
parent 203d314254
commit ccb470207a

@ -86,7 +86,7 @@ const localeMessages = ipc.sendSync('locale-data');
window.updateZoomFactor = () => {
const zoomFactor = window.getSettingValue('zoom-factor-setting') || 100;
window.setZoomFactor(zoomFactor / 100);
}
};
window.setZoomFactor = number => {
webFrame.setZoomFactor(number);

@ -142,7 +142,5 @@ export class SessionSettingListItem extends React.Component<Props, State> {
this.setState({
sliderValue: value,
});
}
}

Loading…
Cancel
Save