Commit Graph

17 Commits

Author SHA1 Message Date
blankie 454d23a975
Add import functionality 2023-03-30 22:56:43 +07:00
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
blankie 44e97f8f05
Finish export 2023-03-29 21:28:31 +07:00
blankie 2a1233d95b
Add LogcatEntries helper 2023-03-29 17:08:31 +07:00
blankie 5ad0938b3e
Fix possible data loss 2023-03-29 17:06:50 +07:00
blankie 72591390d6
Add basic export code 2023-03-29 00:03:16 +07:00
blankie fe2e237a70
Forward declare ImGui::IsKeyPressed 2023-02-24 18:26:48 +07:00
blankie b8784cc26f
Add the ability to move filters up and down 2023-02-24 18:23:56 +07:00
blankie 43a47121e8
Reduce some spacing and stuff for filters 2023-02-24 12:26:05 +07:00
blankie 17f8016d3d
Move filters and exclusions to settings 2023-02-23 16:08:55 +07:00
blankie 361689a945
Use forward declarations 2023-02-22 16:33:36 +07:00
blankie c7fe85413a
Use full paths to imgui files in includes 2023-02-22 16:09:33 +07:00
blankie 432e3c4c71
Unify OK/Cancel/Apply buttons 2023-02-11 22:15:21 +07:00
blankie b21c31ad97
Add QoL for editing filter titles 2023-02-07 13:51:18 +07:00
blankie bda12e0112
__restrict-ify codebase and add log wrapper for logcat thread 2023-02-05 22:57:46 +07:00
blankie b545fbffd5
Don't construct IDs 2023-02-04 22:26:47 +07:00
blankie d62822640c
Add exclusions 2023-02-01 22:22:08 +07:00