mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -73,7 +73,7 @@ equal to the specified value, otherwise it will be set to the specified value.
|
|||||||
# GLFW represents opacity as a float internally, but python's
|
# GLFW represents opacity as a float internally, but python's
|
||||||
# "float" type has double precision, so we can't rely on precise
|
# "float" type has double precision, so we can't rely on precise
|
||||||
# equality here
|
# equality here
|
||||||
if abs(current - val) <= 0.0001:
|
if current is not None and abs(current - val) <= 0.0001:
|
||||||
val = opts.background_opacity
|
val = opts.background_opacity
|
||||||
boss._set_os_window_background_opacity(os_window_id, val)
|
boss._set_os_window_background_opacity(os_window_id, val)
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user