Go to file
blankie 811a5f122f
Ignore errors when trying to open the file picker
xdg-desktop-portal-gtk sends a response code essentially indicating that
it failed to open the file picker[0] when you close the file picker without
using the Cancel button[1]. There does not seem to be any way for the portal
to indicate any other kinds of exit conditions aside from success, cancel, or
failure[2].

Additionally, Kotatogram[3] and Firefox[4] does not display an error if the
portal cannot bring up the file picker.

[0] dc8e1d1138/src/filechooser.c (L230)
[1] https://docs.gtk.org/gtk3/enum.ResponseType.html#delete_event
[2] https://flatpak.github.io/xdg-desktop-portal/#gdbus-signal-org-freedesktop-portal-Request.Response
[3] 5b6f711b6d/Telegram/SourceFiles/platform/linux/linux_xdp_file_dialog.cpp (L622)
[4] https://searchfox.org/mozilla-central/rev/42747dfd314e4c939dc7c33a13e1a2fddf4926fc/widget/gtk/nsFilePicker.cpp#590
2023-03-29 22:21:55 +07:00
fragments Ignore errors when trying to open the file picker 2023-03-29 22:21:55 +07:00
thirdparty Add basic export code 2023-03-29 00:03:16 +07:00
windows Add a clear button 2023-03-29 20:46:28 +07:00
.gitignore Switch from make to cmake 2023-01-22 21:28:14 +07:00
.gitmodules Use full paths to imgui files in includes 2023-02-22 16:09:33 +07:00
CMakeLists.txt Add basic export code 2023-03-29 00:03:16 +07:00
LICENSE Add LICENSE 2023-02-17 12:13:42 +07:00
arb.h Use forward declarations 2023-02-22 16:33:36 +07:00
config.cpp Add file wrapper 2023-03-28 23:48:26 +07:00
config.h Actually use default logcat command 2023-02-03 15:15:54 +07:00
event_loop.cpp Add LogcatEntries helper 2023-03-29 17:08:31 +07:00
event_loop.h Use forward declarations 2023-02-22 16:33:36 +07:00
file.h Add file wrapper 2023-03-28 23:48:26 +07:00
filters.cpp Fix string check 2023-03-07 18:02:57 +07:00
filters.h Avoid copying strings in StringFilter 2023-02-17 12:33:08 +07:00
fonts.cpp Use fontconfig 2023-01-07 16:15:21 +07:00
fonts.h Use fontconfig 2023-01-07 16:15:21 +07:00
group_panel.cpp Use full paths to imgui files in includes 2023-02-22 16:09:33 +07:00
group_panel.h Use forward declarations 2023-02-22 16:33:36 +07:00
log.cpp Rename some functions to to_string 2023-02-09 14:44:34 +07:00
log.h Rename some functions to to_string 2023-02-09 14:44:34 +07:00
logcat_entry.cpp Finish export 2023-03-29 21:28:31 +07:00
logcat_entry.h Finish export 2023-03-29 21:28:31 +07:00
logcat_thread.cpp Reduce amount of epoll events 2023-03-07 20:55:24 +07:00
logcat_thread.h Use forward declarations 2023-02-22 16:33:36 +07:00
main.cpp Add basic export code 2023-03-29 00:03:16 +07:00
misc.cpp Make sure that disabled buttons cannot be activated 2023-03-08 08:40:18 +07:00
misc.h Add the ability to move filters up and down 2023-02-24 18:23:56 +07:00
myimconfig.h Use forward declarations 2023-02-22 16:33:36 +07:00
pcre2_wrapper.cpp Parse logcat entries 2023-01-19 23:34:03 +07:00
pcre2_wrapper.h Parse logcat entries 2023-01-19 23:34:03 +07:00