mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-21 16:02:20 +00:00
Refactor fullscreen toggle action for improved readability. Simplified the listener closure in the Tty7App implementation to enhance code clarity while maintaining functionality.
This commit is contained in:
+3
-3
@@ -1716,9 +1716,9 @@ impl Render for Tty7App {
|
||||
.on_action(cx.listener(|this, _: &ToggleMaximizePane, window, cx| {
|
||||
this.toggle_maximize(window, cx)
|
||||
}))
|
||||
.on_action(cx.listener(|_, _: &ToggleFullscreen, window, _cx| {
|
||||
window.toggle_fullscreen()
|
||||
}))
|
||||
.on_action(
|
||||
cx.listener(|_, _: &ToggleFullscreen, window, _cx| window.toggle_fullscreen()),
|
||||
)
|
||||
.on_action(
|
||||
cx.listener(|this, _: &OpenSettings, window, cx| this.toggle_settings(window, cx)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user