1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 14:41:01 +00:00
serenity/Applications/FileManager
Zac dea399ff08 FileManager: focus_dependent_delete_action is correctly enabled/disabled
The focus_dependent_delete_action that sits in the file manager's
toolbar would always remain enabled, even if nothing was selected,
activating it if nothing was selected would then crash the application.

The action is now correctly enabled/disabled, but due to the way
selection works in TreeViews, something is always selected, what really
matters is if the TreeView has something selected, and it has focus.
As it currently stands, there is no way to know when the TreeView's
is_focused status changes. In order for this to work I added a callback
to the Widget class which fires when a widget receives or looses focus.
In that callback, the focus_dependent_delete_action's enabled value is
recalculated.
2020-12-11 09:36:44 +01:00
..
CMakeLists.txt FileManager: Move the DesktopWidget to its own compilation unit 2020-09-17 14:34:47 +02:00
DesktopWidget.cpp FileManager: Move the DesktopWidget to its own compilation unit 2020-09-17 14:34:47 +02:00
DesktopWidget.h FileManager: Move the DesktopWidget to its own compilation unit 2020-09-17 14:34:47 +02:00
DirectoryView.cpp FileManager: Fix TreeView collapsing on file system changes (#4348) 2020-12-08 17:51:53 +01:00
DirectoryView.h FileManager: Fix TreeView collapsing on file system changes (#4348) 2020-12-08 17:51:53 +01:00
FileUtils.cpp FileManager: Use new format functions. 2020-10-05 16:25:50 +02:00
FileUtils.h FileManager: Move delete and force-delete actions to DirectoryView 2020-09-13 21:41:45 +02:00
main.cpp FileManager: focus_dependent_delete_action is correctly enabled/disabled 2020-12-11 09:36:44 +01:00
PropertiesDialog.cpp FileManager: Use new format functions. 2020-10-05 16:25:50 +02:00
PropertiesDialog.h FileManager: Use FileIconProvider in the properties dialog 2020-08-12 20:41:13 +02:00