Commit graph

795 commits

Author SHA1 Message Date
Cheong Lau
f78d4a4b4f perf: use Rc<RefCell> for ArcElementWrapper
Since `Element` isn't `Sync` and `ArcElementWrapper` doesn't need to be
sent across threads, the overhead from using `Arc<Mutex>` isn't really
needed. Using an `Rc<RefCell>` has the same effect, but is faster and
isn't thread-safe.
2025-10-13 10:13:01 +10:00
Jeremy Soller
5a326b6ff1
Merge pull request #1270 from jasonrhansen/location-context-menu-fix
Fix location context menu
2025-10-10 08:34:34 -06:00
Jason Rodney Hansen
7362e8924c When navbar context menu is opened, close all others 2025-10-09 19:59:27 -06:00
Jason Rodney Hansen
d9d5a6fe3d Fix location context menu 2025-10-09 19:17:55 -06:00
Ashley Wulber
20ea5a2a5c
fix(desktop applet): overlaps 2025-10-09 17:19:18 -04:00
Jeremy Soller
7d5fb79f02
Handle single click to open on release, fixes #1212 2025-10-09 13:52:41 -06:00
Jeremy Soller
f9f27765c7
Always set maximum scrollable height for open with dialog, fixes #1229 2025-10-09 13:41:39 -06:00
Jeremy Soller
52d0586a1b
Merge pull request #1248 from therealmate/image
fix: use the dimension of the image instead of the thumbnail's dimension
2025-10-09 13:24:35 -06:00
therealmate
c7ee1c9ae1 fix: update modifier state for all windows, not just the main window
Fixes https://github.com/pop-os/cosmic-files/issues/1152
2025-10-05 23:44:23 +02:00
Vukašin Vojinović
d788fe2421 perf(zip): don't call sync_all() on every file
Calling it on every file massively slows down extraction of zip archives containing a lot of files.
Yields a ~60x time reduction for extracting a zipped folder containing 10,000 empty txt files.

From what I can find, Ark also doesn't seem to do this, and instead relies on the OS to handle it.
2025-10-05 23:42:30 +02:00
therealmate
23dd824746
fix: use the dimension of the image instead of the thumbnail's dimension
Fixes https://github.com/pop-os/cosmic-files/issues/1244
2025-10-05 22:50:56 +02:00
Vukašin Vojinović
909577b364 chore: clippy 2025-10-03 14:36:00 -04:00
Vukašin Vojinović
4a4d5c0a9e chore: update dependencies
Also removes the license crate patch.
2025-10-03 14:36:00 -04:00
Jeremy Soller
942a7f47d3
Ensure task to remove desktop dialogs is run, fixes #1185 2025-09-16 14:13:04 -06:00
Vukašin Vojinović
901bf3f564 chore: update to icu 2.0.0 2025-09-15 15:20:33 -06:00
Vukašin Vojinović
11b6a0713f chore: link desktop appearance to desktop page 2025-09-13 10:51:14 -06:00
Vukašin Vojinović
131cf7e8cd chore: make dbus-config optional
Also fixes some lints.
2025-09-13 10:51:14 -06:00
Vukašin Vojinović
f0cce9a81f fix(desktop): header bar styling
This effectively reverts commit 19c2cefd8a.
The changes don't seem to be necessary anymore. and this ensures the header bar matches the theme.
2025-09-11 08:15:26 -06:00
Vukašin Vojinović
3ee1a07f09 chore: update dependencies
Updates all dependencies other than ICU.
Enables the `dbus-config` libcosmic feature to fix theming responsiveness.
Also prevents the trash and network drive layer container from touching the edge of the window.
2025-09-11 08:15:26 -06:00
Vukašin Vojinović
4d642ee3fa improv(app): use about widget 2025-09-11 08:15:26 -06:00
Vukašin Vojinović
f95869a631 chore: migrate to Rust 2024 edition 2025-09-11 08:15:26 -06:00
Josh Megnauth
d8acbd2ce0 Fix extracting password protected archives
Closes: #1157

The fix splits the "canceled" and "failed" states for OperationError. It
also preserves that state because some functions overwrote the state by
rewrapping the error.
2025-09-09 07:52:32 -06:00
Ryan Brue
a76f7f8685 Fix tests
Tested with cargo test --all-features

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
2025-08-20 17:13:43 -04:00
Jason Rodney Hansen
16868ca990 Fix for right-clicking file when context menu is open already
This fixes a bug where right-clicking a file while the context menu was open
for another file would open another context menu that couldn't be closed.

The new behavior is to close the context menu.
2025-08-17 16:25:10 -06:00
Jeremy Soller
0bf1a21351
Remove unnecessary mount code, fixes #1141 2025-08-15 11:46:51 -06:00
Jeremy Soller
116774d5fa
Use Location::path_opt for checking for location path 2025-08-15 11:38:26 -06:00
Jeremy Soller
50d721479d
Allow search on gvfs drives, fixes #1104 2025-08-15 11:30:51 -06:00
Jeremy Soller
a6f0d898ce
Support drag and drop to gvfs drives, fixes #1140 2025-08-15 11:27:33 -06:00
Jeremy Soller
be67fd8e0d
Use Extract To dialog for supported archive types by default 2025-08-15 11:23:24 -06:00
Jeremy Soller
fb74be9a70
Restore tab scroll position, fixes #1115 2025-08-15 11:01:08 -06:00
Jeremy Soller
5e0645d1c2
Filter window events by window id, fixes #1118 2025-08-15 09:23:29 -06:00
Jeremy Soller
30a0836018
Fix adding default mime associations when app does not list mime types 2025-08-15 08:54:36 -06:00
Jeremy Soller
b3a6d14bc6
Update dependencies 2025-08-13 12:40:20 -06:00
Ashley Wulber
c8e5d986f2
Fix context menu position (#1136)
* chore: update libcosmic

* fix(context menu): compensate for scroll virtual offset, and use window position
2025-08-13 11:01:03 -06:00
Ashley Wulber
a4e3bf3eea
fix: limit concurrent thumbnail generation (#1138) 2025-08-13 11:00:07 -06:00
Jeremy Soller
e3c793a44d
Move archive handling to archive.rs 2025-08-04 15:13:55 -06:00
Joshua Megnauth
007a4cf95c
Fix trash watcher regression (#1122)
Recursively watching the trash directories can be slow, but not watching
at least the "files" folder (e.g. .Trash-1000/files) leads to missed
events.

I also simplified the events parsing.
2025-08-03 06:37:20 -06:00
Jeremy Soller
4f015eec7a
Only scroll to focused object on resize, fixes #1097 2025-07-31 10:04:34 -06:00
Jeremy Soller
67884d2800
Do not apply image size limit to all files 2025-07-30 15:52:21 -06:00
Jeremy Soller
5736fbb271
Remove unnecessary debug 2025-07-30 15:48:53 -06:00
Mitchel Stewart
293350092c
thumbnail: Support jxl and plumbing for future formats. (#1058)
* add plumbing for additional thumbnailers

* remove bad logging and fmt

* fix bad logging message

* add decoding ram limits

* add configuration for thumbs

* cleanups

* fix rebase fails
2025-07-30 15:45:53 -06:00
Josh Megnauth
64c8506dd2 Decode URL encoded recents bookmark
File paths are URL encoded in the recently-used.xbel file. Paths with
spaces (or whatever) need to be decoded or else the Recents tab skips
those entries.
2025-07-28 15:27:51 -06:00
Josh Megnauth
dfb2ca7443 Watch .recently-used.xbel
Closes: #1072
2025-07-28 09:30:24 -06:00
Ashley Wulber
6d9e6c1d20 fix(desktop): use the window id for context menus 2025-07-25 15:47:37 -04:00
Jeremy Soller
a6e369df0f
Enable context menu popups in dialog, close context menu when location changes 2025-07-24 11:34:41 -06:00
Jeremy Soller
605f44763b
On wayland, place context menus into popups, fixes #1090 2025-07-24 10:51:46 -06:00
Jorge Menjivar
050e043867 Remove old TODO comment 2025-07-24 10:25:42 -06:00
Jorge Menjivar
cb36a25060 Fix slow startup
Remove unnecessary watch of sub-directories in trash bins, which causes really long startup times
2025-07-24 10:25:42 -06:00
Josh Megnauth
35a9bd5347 Use trash-rs' is_empty more
Fixes two instances where enumerating trash items isn't needed.
2025-07-24 10:25:16 -06:00
Jeremy Soller
795f90ba95
Persist more dialog options 2025-07-22 09:13:14 -06:00