Lucas Fernandes Nogueira
80b714af6b
fix: rendering issue when resizing with devtools open closes #3914 #3814 ( #3915 )
2022-04-19 19:04:52 -03:00
Lucas Fernandes Nogueira
fa2baba76c
feat(core): create webview immediately when running in main thread ( #3891 )
2022-04-12 13:22:02 -03:00
Lucas Fernandes Nogueira
169b5035a9
fix(core): actually fire WindowEvent::Destroyed
( #3797 )
2022-03-28 22:43:07 -03:00
Lucas Fernandes Nogueira
edad9f4f55
refactor(core): add RunEvent::WindowEvent
( #3793 )
2022-03-28 17:26:25 -03:00
Lucas Fernandes Nogueira
e05d718a7b
feat(core): add hotkey to toggle devtools, closes #3776 ( #3791 )
2022-03-28 11:17:28 -03:00
Lucas Fernandes Nogueira
9ddf8d84a2
fix(core): properly fire WindowEvent::Destroyed
, closes #3688 ( #3778 )
2022-03-28 10:24:02 -03:00
Lucas Fernandes Nogueira
5fb74332ab
chore(deps): update wry to 0.14, tao to 0.7 ( #3790 )
2022-03-28 10:20:38 -03:00
Lucas Fernandes Nogueira
3c4ee7c997
refactor(wry): emit RunEvent::Exit
on Event::LoopDestroyed
( #3785 )
2022-03-27 20:22:34 -03:00
Lucas Fernandes Nogueira
9489963e00
fix(core): deadlock when closing the app on a tray event handler ( #3771 )
2022-03-25 13:17:32 -03:00
Kasper
4e807a53e2
Support window parenting on macOS, closes #3751 ( #3754 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-03-23 13:30:44 -03:00
Lucas Fernandes Nogueira
da1e879358
feat(core): improve and cleanup the Error
enum ( #3748 )
2022-03-22 15:04:47 -03:00
Lucas Fernandes Nogueira
7cd39c70c9
refactor(core): use random window id to simplify window creation, closes #3645 #3597 ( #3684 )
...
* refactor(core): window id
* fixes
* reintroduce send_tao_window_event
* cleanup code
* add change file
* fix: windows build
* add getter
* fix windows build
2022-03-15 12:59:37 -03:00
Lucas Fernandes Nogueira
5d538ec27c
refactor(core): use the event loop proxy to send updater events ( #3687 )
...
* feat(core): add `WindowEvent::FileDrop`, closes #3664
* refactor(core): use the event loop proxy to send updater events
* simplify generics with user event trait
* fix tray impl
2022-03-15 11:20:23 -03:00
Lucas Fernandes Nogueira
07d1584cf0
feat(core): add WindowEvent::FileDrop
, closes #3664 ( #3686 )
2022-03-13 11:28:16 -03:00
Lucas Fernandes Nogueira
c08cc6d500
fix(core): deadlock on focus events with invisible window,#3534 ( #3622 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2022-03-06 18:44:12 -03:00
Lucas Nogueira
aab8006b93
fix(core): Rust documentation generation
2022-03-06 10:42:24 -03:00
Lucas Fernandes Nogueira
3b13fda56f
feat(core): add WindowBuilder::on_request
, closes #3533 ( #3618 )
...
Co-authored-by: Jonas Kruckenberg <iterpre@protonmail.com>
2022-03-06 10:15:43 -03:00
Lucas Fernandes Nogueira
8c9358725a
refactor(core): move png
and ico
behind Cargo features ( #3588 )
2022-03-05 14:19:24 -03:00
Lucas Fernandes Nogueira
080755b537
feat(core): warn if private APIs are not enabled, closes #3481 ( #3511 )
2022-02-19 10:22:54 -03:00
Lucas Fernandes Nogueira
a03b85545a
fix(core): tray not closing on Windows ( #3351 )
2022-02-07 13:04:38 -03:00
Lucas Fernandes Nogueira
af44bf8168
feat(core): allow app run on any thread on Linux & Windows, closes #3172 ( #3353 )
2022-02-07 11:31:07 -03:00
Lucas Fernandes Nogueira
8483fde975
feat(core): expose run_return
on Linux ( #3352 )
2022-02-07 11:30:45 -03:00
Lucas Fernandes Nogueira
55aa22de80
feat(core): add Window#open_devtools
API, closes #1213 ( #3350 )
2022-02-07 10:04:33 -03:00
Lucas Fernandes Nogueira
9b34055264
fix(core): window-specific event delivery, closes #3302 ( #3344 )
2022-02-06 17:50:02 -03:00
Lucas Fernandes Nogueira
bff86ee4c4
chore: remove egui
feature ( #3330 )
2022-02-04 17:02:54 -03:00
Lucas Nogueira
675d171eed
fix(core): tests, lint
2022-02-04 14:03:27 -03:00
Lucas Nogueira
0d1e3219b4
Merge branch 'next' into feat/audit-patches
2022-02-02 20:09:41 -03:00
Lucas Fernandes Nogueira
9014fe88b6
refactor(core): cleanup egui
implementation ( #3227 )
2022-01-16 01:14:18 -03:00
Lucas Nogueira
b9c00d2db5
chore(deps): update windows
to 0.30
2022-01-15 13:20:30 -03:00
Lucas Fernandes Nogueira
ab7d3b51eb
feat: emit CloseRequested
event for egui windows ( #3222 )
2022-01-15 12:23:26 -03:00
Ahmad AlHallak
c6e05380f7
fix: getter
macro panicking on RecvError
, closes #3188 ( #3192 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-10 15:33:35 -03:00
Lucas Fernandes Nogueira
d4017d505c
chore: remove eprintln!
usage on release [TRI-051] ( #15 )
2022-01-09 14:49:17 -03:00
Lucas Fernandes Nogueira
d42ccfb34f
feat: add clipboard
flag to WebviewAttributes
[TRI-032] ( #12 )
2022-01-09 14:30:31 -03:00
Lucas Nogueira
6ac21b3cef
feat: add private api feature flag ( #7 )
2022-01-09 11:29:29 -03:00
Lucas Nogueira
c7621aa019
chore: fix some clippy warnings
2022-01-06 10:39:21 -03:00
Ngo Iok Ui (Wu Yu Wei)
3dddce5436
fix(tauri-runtime-wry): egui deps should be added behind the flag ( #3170 )
...
* Add egui deps behind feature flag
* Fix errors on Linux
2022-01-05 22:39:43 +08:00
Ngo Iok Ui (Wu Yu Wei)
5e0d59ec7d
Initial support of egui native window ( #3165 )
...
* Initial support of egui
Expose method
Handle egui window lifetime properly
Add focus event logic
Check window_id on window event
Add Linux support
Fix window closing on Linux
Update flag to configure on different platforms
Fix control flow when egui window close
Add label param to egui window
* Innitial egui window support
* Add feature flag and change file
* Fix errors on Linux
2022-01-05 17:56:55 +08:00
Lucas Fernandes Nogueira
e784ebca9f
fix(core): Send+Sync for Window, closes #3135 ( #3140 )
2021-12-30 13:46:05 -03:00
Lucas Fernandes Nogueira
efbf236f35
refactor(core): make zstd
optional enabled by default ( #3133 )
2021-12-30 11:28:41 -03:00
Ngo Iok Ui (Wu Yu Wei)
0deaed8c57
Update windows dependency to 0.29 ( #3132 )
2021-12-29 07:07:08 -03:00
Lucas Fernandes Nogueira
9c82006b2f
fix(core): deadlock when creating window from menu handler, closes #3110 ( #3126 )
2021-12-28 22:51:33 -03:00
Lucas Fernandes Nogueira
74dff536d4
fix(core): emit tauri://close-requested
to JS, closes #2996 ( #3041 )
2021-12-09 12:22:12 -03:00
Amr Bashir
76ce9f61dd
fix(core): fix window.center
panic when window size > screen, closes #2978 ( #3002 )
2021-12-09 00:21:29 -03:00
Lucas Fernandes Nogueira
411618f0de
fix(core): menu ids map not updated after set_menu
call ( #2963 )
2021-11-25 13:27:12 -03:00
renovate[bot]
ec8540d65b
chore(deps) Update Tauri Core ( #2946 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-11-24 11:12:26 -03:00
Bill Avery
34be6cf37a
Update webview2-com and windows crates ( #2875 )
2021-11-11 18:38:41 -03:00
renovate[bot]
2661af4de4
chore(deps) Update Rust crate blake3 to 1.2 ( #2859 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-11-10 11:12:05 -03:00
Lucas Fernandes Nogueira
a9dfc01550
feat: update to edition 2021 and set minimum rust to 1.56 ( #2789 )
2021-10-22 10:04:42 -03:00
Lucas Nogueira
2e1f207165
fix: use Wait instead of Poll
2021-10-18 13:34:06 -03:00
Jalal El Mansouri
7086cd54d8
Setting the control flow to Poll by default ( #2763 )
2021-10-18 13:18:48 -03:00
Lucas Fernandes Nogueira
ac37b56ef4
fix(core): menu id map not reflecting the current window menu ( #2726 )
2021-10-08 11:38:24 -03:00
Lucas Fernandes Nogueira
53fdfe52bb
feat(core): expose run_on_main_thread
API ( #2711 )
2021-10-04 12:54:38 -03:00
Fausto Núñez Alberro
0e4d12b541
fix : #2502 Expose set_menu
from tao through the TrayHandle struct ( #2532 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-10-02 15:57:53 -03:00
Lucas Fernandes Nogueira
4c0c780e00
fix(core): window's inner_size usage, closes #2187 ( #2690 )
2021-09-29 20:52:05 -03:00
Lucas Fernandes Nogueira
35ae9c8a2e
fix(core): macOS crashing due to WebContext drop, closes #2622 ( #2686 )
2021-09-29 16:28:37 -03:00
Lucas Fernandes Nogueira
d24fd8d102
feat(tauri-runtime-wry): allow window creation and closing on the main thread ( #2668 )
2021-09-27 20:18:06 -03:00
Julien Kauffmann
bdbf905e5d
Transformed event-loop callback to FnMut to allow mutable values ( #2667 )
2021-09-27 16:27:37 -03:00
Lucas Nogueira
4866404f04
fix(core): deadlock on window event handler
2021-09-26 10:01:03 -03:00
Lucas Nogueira
63ae30f187
fix(core): deadlocks on previous commit
2021-09-26 01:54:20 -03:00
Lucas Fernandes Nogueira
2812c4464b
feat(core): window, shortcut and clipboard API calls on main thread ( #2659 )
2021-09-26 01:50:27 -03:00
Bill Avery
bb00d5bd6c
Replace winapi with windows crate and use webview2-com instead of webview2 ( #2615 )
...
* Switch to webview2-com version of tao and wry
* Pick up latest branch of TAO and WRY
* Let WRY pick the branch for TAO instead of patch
* Add comment for wry next branch pending merge
* Add changelog
* Revert wry redirect in Cargo.toml
* Use pinned rev for matching PR merge commit
2021-09-24 17:40:22 +08:00
Lucas Nogueira
c1494b3532
refactor: return Weak<Window> on create_tao_window
2021-08-31 15:50:40 -03:00
Amr Bashir
ad17b9bf2a
chore: add note about focusing the webview ( #2545 )
2021-08-29 20:12:45 +08:00
Elvinas Predkelis
3b33d67aa4
fix: re-adding focus/blur events for linux and macos ( fix #2485 ) ( #2489 )
...
* fix: re-adding focus/blur events for linux and macos, closes #2485
* add change files [skip ci]
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-24 11:47:54 -03:00
renovate[bot]
1f98853573
chore(deps) Update Tauri Core ( #2480 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: david <david@lemarier.ca>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: chip <chip@chip.sh>
2021-08-24 11:40:10 -03:00
Lucas Fernandes Nogueira
50ffdc06fb
feat(core): panic when a dispatcher getter is used on the main thread ( #2455 )
2021-08-16 17:28:15 -03:00
Lucas Fernandes Nogueira
957e863e59
fix(core): unique WebContext for each window when TAURI_AUTOMATION unset ( #2396 )
2021-08-15 20:33:45 -03:00
Lucas Fernandes Nogueira
6be3f43391
feat(core): add Resumed
and MainEventsCleared
events, closes #2127 ( #2439 )
2021-08-15 18:14:26 -03:00
david
28c6b7adfe
feat: add Event::Ready
( #2433 )
2021-08-15 17:10:22 -03:00
Lucas Fernandes Nogueira
4a031add69
feat(core): expose set_activation_policy
, closes #2258 ( #2420 )
...
* feat(core): expose `set_activation_policy`, closes #2258
* fix change file [skip ci]
* Update .changes/runtime-set-activation-policy.md [skip ci]
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
* clippy
* allow unused mut on example
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-08-13 13:25:31 -03:00
Lucas Nogueira
6cd640fa0a
fix(core): import set_native_image
on macOS
2021-08-13 11:25:39 -03:00
Ngo Iok Ui (Wu Yu Wei)
f81ebddfcc
feat: remove menu feature flag ( #2415 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-13 10:23:32 -03:00
Lucas Fernandes Nogueira
f4eafec705
feat(core): add window_label
to the ExitRequested
event payload ( #2410 )
2021-08-12 14:22:08 -03:00
Lucas Fernandes Nogueira
5f6e135f23
refactor(cli.js): package as ES module, closes #2256 ( #2392 )
2021-08-11 14:00:35 -03:00
Lucas Fernandes Nogueira
fa9341ba18
feat(core): implement Debug
on public API structs/enums, closes #2292 ( #2387 )
2021-08-11 02:07:39 -03:00
Wouter Buckens
892c63a053
feat( #2287 ): Add ExitRequested
event to let users prevent app from exiting ( #2293 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-08 21:12:32 -03:00
Lucas Fernandes Nogueira
15566cfd64
feat(core): add API to send wry window message to the event loop ( #2339 )
...
* feat(core): add API to send wry window message to the event loop
* expose types
2021-08-02 16:45:24 -03:00
chip
4b2aa35684
Add back WebDriver support ( #2324 )
2021-08-01 23:54:10 -03:00
david
426a6b4996
feat(macOS): Implement tray icon template ( #2322 )
2021-07-29 15:29:59 -04:00
david
8808085541
feat(window): Allow creation of Window without wry
( #2321 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-07-29 14:35:26 -03:00
Amr Bashir
caa7bf44c9
refactor(core/wry): use is_menu_visible
instead of atomic bool ( #2320 )
2021-07-29 09:50:18 -03:00
Amr Bashir
d832d575d9
fix(windows): use webview events on windows ( #2277 )
2021-07-23 09:31:17 -04:00
Jonathan Dizdarevic
226414d1a5
"cannot find type MenuHash
in this scope" ( #2240 )
2021-07-20 05:37:21 -04:00
david
f0a8db62e4
core(deps): bump wry
to 0.11
( #2210 )
2021-07-15 11:47:19 -04:00
chip
fd8fab507c
refactor(core): remove Params
and replace with strings ( #2191 )
...
* refactor(core): remove `Params` and replace with strings
* add tauri-utils to changelog
* update default runtime macro to accept type and feature
* remove accidental default feature addition
* remove changefile todo items that have no futher action
* fix clippy warning
* update changefile
* finish change file
* fix splashscreen example
* fix markdown typo [skip ci]
* remove final uses of `Params`
* add license header to new runtime module in tauri-macros
* update plugin guide to use runtime instead of params
2021-07-15 18:05:29 +08:00
Lucas Fernandes Nogueira
a410958d45
Revert "fix(wry): resize webview on window move, closes #1911 " ( #2202 )
...
This reverts commit 06abe65569
.
2021-07-12 12:58:49 -03:00
FabianLars
bc2c331dec
fix: center and focus not being allowed in config ( #2199 )
2021-07-12 11:59:32 -03:00
Lucas Fernandes Nogueira
8157a68af1
feat(core): allow listening to event loop events & prevent window close ( #2131 )
2021-07-06 13:36:37 -03:00
Lucas Fernandes Nogueira
e0a8e09cab
feat(core): expose gtk_window
, closes #2083 ( #2141 )
2021-07-02 13:08:51 -03:00
Ngo Iok Ui (Wu Yu Wei)
6569c2bf5c
refactor(wry): remove a few locks requirements ( #2137 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-07-02 00:06:58 -03:00
Lucas Fernandes Nogueira
06abe65569
fix(wry): resize webview on window move, closes #1911 ( #2135 )
2021-07-02 00:00:05 -03:00
Lucas Fernandes Nogueira
e663bdd593
fix(core): svg mime type ( #2129 )
2021-06-30 13:04:09 -03:00
Ngo Iok Ui (Wu Yu Wei)
a280ee90af
Fix high cpu usage on mac, fix #2074 ( #2125 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-30 10:38:22 -03:00
Lucas Fernandes Nogueira
fe32afcc93
fix(core): Window
must be Send + Sync
on Windows, closes #2078 ( #2093 )
2021-06-27 11:02:17 -03:00
Lucas Nogueira
b4426eda9e
Revert "WebDriver support ( #1972 )"
...
This reverts commit be76fb1dfe
.
2021-06-23 16:30:40 -03:00
Lucas Fernandes Nogueira
fca976404e
fix(wry): window event listeners being emitted to all windows ( #2056 )
2021-06-23 16:20:09 -03:00
chip
be76fb1dfe
WebDriver support ( #1972 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-23 13:59:47 -03:00
renovate[bot]
951f04b9c1
chore(deps) Update Rust crate phf to 0.9 ( #2051 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-23 13:03:28 -03:00
Lucas Nogueira
bef9f2845e
fix: build without menu
feature
2021-06-23 12:05:58 -03:00
Lucas Fernandes Nogueira
c9b11001f1
fix(wry): menu event is now tied to the window ( #2048 )
2021-06-23 11:29:30 -03:00