diff options
| author | Kai Uwe Broulik <[email protected]> | 2022-07-05 13:00:34 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2022-07-07 06:03:12 +0000 |
| commit | 74ae8478acd0da7619dd5a0f969aa3f479074413 (patch) | |
| tree | f05733f3d860397462c54d59ec3dadcc145d99e6 /src/views/dolphinview.h | |
| parent | 5ebc6b865de31b84faa353f6a85a76734c06ebe4 (diff) | |
Show "Loading canceled" placeholder when loading was canceled
Rather than "Folder empty", which is misleading as we didn't
actually load anything.
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 62ced31ac..f3ba9445f 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -875,7 +875,14 @@ private: bool m_isFolderWritable; bool m_dragging; // True if a dragging is done. Required to be able to decide whether a // tooltip may be shown when hovering an item. - bool m_loading; + + enum class LoadingState { + Idle, + Loading, + Canceled, + Completed + }; + LoadingState m_loadingState = LoadingState::Idle; QUrl m_url; QString m_viewPropertiesContext; |
