Commit Graph

120 Commits

Author SHA1 Message Date
blankie 55210a7e30
Reflow logcat_entry.cpp 2023-03-30 21:32:31 +07:00
blankie d1afe12773
Use `struct tm` to store time 2023-03-30 21:24:01 +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 1382d4b2ab
Add a clear button 2023-03-29 20:46:28 +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 d4e6d72a18
Add file wrapper 2023-03-28 23:48:26 +07:00
blankie 46389de61f
Update imgui 2023-03-28 23:46:30 +07:00
blankie 39a7faa465
Use std::get_if 2023-03-28 19:55:44 +07:00
blankie 283b5e9f4d
Make sure that disabled buttons cannot be activated 2023-03-08 08:40:18 +07:00
blankie 451c57f198
Update imgui 2023-03-08 08:38:28 +07:00
blankie fac2cb08f1
Reduce amount of epoll events 2023-03-07 20:55:24 +07:00
blankie 626e081876
Ignore EINTR 2023-03-07 20:55:02 +07:00
blankie 4db64d4da6
Fix string check 2023-03-07 18:02:57 +07:00
blankie a6572fb085
Add buttons to add test logcat entries 2023-03-07 18:02:18 +07:00
blankie 562aa7e643
Don't hardcode compilers and linker 2023-02-26 00:22:19 +07:00
blankie a7faa81739
Update imgui 2023-02-24 22:56:34 +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 603d3165bb
Add opening settings and logs with keyboard shortcuts 2023-02-23 16:12:46 +07:00
blankie 17f8016d3d
Move filters and exclusions to settings 2023-02-23 16:08:55 +07:00
blankie 1cd369e6c0
Make logcat command input box monospace 2023-02-23 14:46:28 +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 381e0d075a
Use poll if epoll is not available 2023-02-21 15:09:45 +07:00
blankie c3a277e232
Immediately exit if execlp()/dup2() failed 2023-02-20 16:20:36 +07:00
blankie 0e709f25cd
Avoid copying strings in StringFilter 2023-02-17 12:33:08 +07:00
blankie 12cf71130f
Add LICENSE 2023-02-17 12:13:42 +07:00
blankie 30e9a4df7d
Update imgui 2023-02-16 21:57:42 +07:00
blankie 10d81944b7
Set compilers and linker before project() call 2023-02-15 21:09:57 +07:00
blankie 79d9eec0b8
Update CMakeLists.txt 2023-02-14 21:21:02 +07:00
blankie 432e3c4c71
Unify OK/Cancel/Apply buttons 2023-02-11 22:15:21 +07:00
blankie 5b777dc309
Allow context menu items to persist even when the items are offscreen 2023-02-11 09:28:10 +07:00
blankie bd4336d801
Add option to copy time 2023-02-09 18:43:42 +07:00
blankie bc6bd4164f
Add individual copy options for logs and logcat entries 2023-02-09 15:27:39 +07:00
blankie 042ed355d5
Rename some functions to to_string 2023-02-09 14:44:34 +07:00
blankie 5f13a1c1c4
Indent config file 2023-02-07 13:57:37 +07:00
blankie b21c31ad97
Add QoL for editing filter titles 2023-02-07 13:51:18 +07:00
blankie c43dd3a4db
Clear logcat entries when (re)starting logcat 2023-02-07 13:36:51 +07:00
blankie bda12e0112
__restrict-ify codebase and add log wrapper for logcat thread 2023-02-05 22:57:46 +07:00
blankie fd2652b16e
Remove a few lines from windows/main.cpp 2023-02-05 21:02:36 +07:00
blankie 62b6b57b8d
Warn about non-integer font sizes 2023-02-05 13:51:00 +07:00
blankie b545fbffd5
Don't construct IDs 2023-02-04 22:26:47 +07:00
blankie e852ead133
Add Ctrl+W 2023-02-04 14:31:50 +07:00
blankie a6a53eb98a
Actually use default logcat command 2023-02-03 15:15:54 +07:00
blankie 1c44b770a8
Don't show logcat exit code if there's any request 2023-02-03 12:01:19 +07:00
blankie 04c46e220f
Use localtime_r 2023-02-03 11:59:51 +07:00