File tree 1 file changed +7
-6
lines changed
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):
1947
1947
else :
1948
1948
self .opts ['enable_mouse' ][1 ] = True
1949
1949
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'
1956
1957
elif sp [0 ] == 'confirm_station_deletion' :
1957
1958
if sp [1 ].lower () == 'false' :
1958
1959
self .opts ['confirm_station_deletion' ][1 ] = False
You can’t perform that action at this time.
0 commit comments