File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
browser/main/modals/PreferencesModal Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import CSSModules from 'browser/lib/CSSModules'
33import styles from './ConfigTab.styl'
44import ConfigManager from 'browser/main/lib/ConfigManager'
55import store from 'browser/main/store'
6+ import _ from 'lodash'
67
78const electron = require ( 'electron' )
89const ipc = electron . ipcRenderer
@@ -50,6 +51,7 @@ class HotkeyTab extends React.Component {
5051 type : 'SET_UI' ,
5152 config : newConfig
5253 } )
54+ this . clearMessage ( )
5355 }
5456
5557 handleHintToggleButtonClick ( e ) {
@@ -69,6 +71,14 @@ class HotkeyTab extends React.Component {
6971 } )
7072 }
7173
74+ clearMessage ( ) {
75+ _ . debounce ( ( ) => {
76+ this . setState ( {
77+ keymapAlert : null
78+ } )
79+ } , 2000 ) ( )
80+ }
81+
7282 render ( ) {
7383 let keymapAlert = this . state . keymapAlert
7484 let keymapAlertElement = keymapAlert != null
You can’t perform that action at this time.
0 commit comments