File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ const ConnectionRow: React.FC<ConnectionRowProps> = ({
97
97
} ;
98
98
99
99
const copyAddress = ( ) => {
100
+ setMenuAnchor ( null ) ;
100
101
clipboard . writeText ( port ) ;
101
102
enqueueSnackbar ( 'Address Copied' , {
102
103
variant : 'success' ,
@@ -105,6 +106,7 @@ const ConnectionRow: React.FC<ConnectionRowProps> = ({
105
106
} ;
106
107
107
108
const toggleConnected = ( ) => {
109
+ setMenuAnchor ( null ) ;
108
110
ipcRenderer . send ( UPDATE_LISTENERS , {
109
111
connectionIds : [ connection ?. id || '' ] ,
110
112
connected : ! connected ,
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export const prodDebug = process.env.DEBUG_PROD === 'true';
7
7
export const TOAST_LENGTH = 2000 ;
8
8
9
9
// Actions for the ipcMain and ipcRenderer messages
10
- export const CONNECTION_RESPONSE = 'connection-resp' ;
11
- export const CONNECTION_CLOSED = 'connection-close' ;
12
10
export const DISCONNECT_ALL = 'disconnect-all' ;
13
11
export const DISCONNECT = 'disconnect' ;
14
12
export const UPDATE_LISTENERS = 'update_listeners' ;
@@ -27,7 +25,6 @@ export const DELETE = 'delete';
27
25
export const DELETE_ALL = 'delete-all' ;
28
26
export const DUPLICATE = 'duplicate' ;
29
27
export const EXPORT = 'export' ;
30
- export const EXPORT_ALL = 'export-all' ;
31
28
export const IMPORT = 'import' ;
32
29
export interface QueryParams {
33
30
connectionID : string ;
You can’t perform that action at this time.
0 commit comments