File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1947,12 +1947,13 @@ def read_config(self):
19471947 else :
19481948 self .opts ['enable_mouse' ][1 ] = True
19491949 elif sp [0 ] == 'enable_notifications' :
1950- # if not (sp[1] in ('0', '-1')):
1951- try :
1952- t = int (int (sp [1 ]) / 30 )
1953- self .opts ['enable_notifications' ][1 ] = str (t * 30 )
1954- except (ValueError , TypeError ):
1955- self .opts ['enable_notifications' ][1 ] = '-1'
1950+ self .opts ['enable_notifications' ][1 ] = sp [1 ]
1951+ if sp [1 ] not in ('0' , '-1' ):
1952+ try :
1953+ t = int (int (sp [1 ]) / 30 )
1954+ self .opts ['enable_notifications' ][1 ] = str (t * 30 )
1955+ except (ValueError , TypeError ):
1956+ self .opts ['enable_notifications' ][1 ] = '-1'
19561957 elif sp [0 ] == 'confirm_station_deletion' :
19571958 if sp [1 ].lower () == 'false' :
19581959 self .opts ['confirm_station_deletion' ][1 ] = False
You can’t perform that action at this time.
0 commit comments