Commit graph

10 commits

Author SHA1 Message Date
Christian Soffke
5c2a33bba3 Hide extension in Rename dialog when viewing single file type
Hides the file name extension when renaming a file in
places other than the File Browser, such as in the
Playlists menu, where only a single file type is displayed.

Otherwise, a file can disappear from view if its extension
is accidentally changed.

Plus, it becomes a little easier to edit playlist names,
because  you don't have to skip past the extension in the
keyboard picker anymore.

Change-Id: I39fc2b008d5504080e0aa728acf88ceedc2b4617
2025-06-02 21:05:32 -04:00
Christian Soffke
f3d127f372 Minor confirm prompt adjustments
* Rename LANG_RESET_ASK to LANG_ARE_YOU_SURE,
  so that it matches the actual language string
  (translations remain valid), and can be repurposed
  for generic confirmation prompts, where the
  first line says "Are you sure?", and the second
  line reiterates the selected action

* Add "Reset Settings" as second line to the prompt
  shown before resetting settings, instead of just
  asking "Are you sure?"

* Make Shuffle prompt consistent between WPS and
  Playlist Viewer, and ask whether user is sure they
  want to Shuffle instead of warning them that the
  current playlist will be erased, which was a bit
  misleading

* Explicitly say "Cancelled" when user answers NO to
  erasing the current playlist or to overwriting a file.
  Improves consistency with other prompts that are
  displayed for potentially destructive actions, e.g.
  before items are deleted, renamed, saved, or reset.

* PictureFlow: Prompt before rebuilding/updating cache

Change-Id: Id8ae36db7187315eb1a374701307e6ab4dcdbd1d
2025-05-26 23:15:53 -04:00
Christian Soffke
ca459a9d09 misc: Eliminate redundant yes/no dialog functions
Change-Id: I28bc4531cdfe6e28a1677b1a0ebb461e48188fd8
2025-01-15 14:10:17 -05:00
Christian Soffke
eb91595988 fileop: display progress bar for single file deletion
Change-Id: Id895eb270b8ce1ad483c508c98d6318ba6069cf0
2024-11-09 04:25:48 -05:00
Christian Soffke
512f5561ba fileop: Prevent poweroff during move
When overwriting an existing directory, the idle
power off timer may fire during the mass-renaming
of individual files.

Change-Id: Iedbc882c2470c32129a162d31dab8e5031a929b9
2024-08-11 19:33:05 +02:00
Christian Soffke
ce417b3e1b fileop: check dst path length during pre-scan
Use the known difference in path length between src
and dst in order to detect an insufficient
buffer size not just for the source, but also for
the destination path during the pre-scan already.

Change-Id: I9e4caeb9b9d2cb1e9577f418f2b777ab17718acf
2024-08-11 19:32:55 +02:00
Christian Soffke
48400b6ec1 fileop: fix slow pre-scan & flashing progress bar
Scanning files before a delete or copy operation was
slowed down by splashf() being called too frequently.

- Delay and update splashf every 0.5s (the scan will
  often be finished in a split second)
- Only clear screen buffer before scan info is redrawn
- Display name of *top* level item only, to prevent bar
  from jumping around due to the string length changing
- Use item size for progress bar, so that the overall
  progress isn't interrupted by each file's progress
- Display processed & total file sizes (KiB if total
  is < 10MiB, or MiB otherwise)
- Move delete confirmation before scan to provide
  instant UI feedback

Change-Id: I882a8db4161a46aca2d398e371ec4ed018fc8501
2024-08-11 13:18:50 -04:00
William Wilgus
e4ee8c8879 [Fix Yellow] file_op.c Bad DEBUGF statement
Change-Id: I22fa470599b0c22fae0bc5492eda38fd1e0c0b55
2024-07-04 13:01:36 -04:00
William Wilgus
b0dfcde2f5 [Cleanup] onplay.c fileop.c
clean-up a bit more
add/correct some comments

fix some error passing
guard delete path on PATH_TOO_LONG

add some cpu_boost

Change-Id: Icf179dd727271bdc61ab78400e10847222b9f858
2024-07-04 12:44:04 -04:00
William Wilgus
dc7486c7de [Feature] onplay.c show file progress
first some clean-up of onplay.c

extend/move fileobject copy, move, delete routines in prep for other users

add error checking, better error codes
pre scan to make sure the operation doesn't exceed system resources
show progress for file and directory copies

Change-Id: Ife2e62df554892dab651bab40433bf70b27e73ff
2024-06-30 02:09:40 -04:00