Commit Graph

25 Commits

Author SHA1 Message Date
Alexandr Stelnykovych
f8679f6b8c fix[desktop:Tauri]: block navigation to blank page
https://github.com/safing/portmaster/issues/2023
2025-10-02 17:53:42 +03:00
Alexandr Stelnykovych
8dbd61215b feat: implement debounced window state saving for shutdown resilience
- Add create_debounced_window_state_saver() function in window.rs
- Extract WINDOW_STATE_FLAGS_TO_SAVE and WINDOW_STATE_SAVE_TIMEOUT constants
- Listen to tauri://move and tauri://resize events with 5-second debouncing
- Automatically save window state after positioning changes settle
- Prevent window position loss during system shutdowns/restarts

The debouncing mechanism avoids excessive disk I/O during active window
manipulation while ensuring recent position changes are preserved even
when the application doesn't close normally.

Fixes window position being lost when system restarts before user
manually closes the application.
https://github.com/safing/portmaster/issues/2011
2025-09-04 23:36:01 +03:00
Alexandr Stelnykovych
5b121338ef [desktop] UI: Ctrl+/Crtl- shortcuts to Zoom-in/Zoom-out
https://github.com/safing/portmaster/issues/1961
2025-08-25 13:12:43 +03:00
Alexandr Stelnykovych
95838b510c fix(UI; Linux): Workaround for unresponsive title-bar buttons on KDE with Wayland
https://github.com/safing/portmaster/issues/1909
2025-06-19 15:38:36 +03:00
Alexandr Stelnykovych
2e5076b3bc fix(UI): Automatically unminimize window when triggered by left mouse click 2025-06-06 13:55:06 +03:00
Alexandr Stelnykovych
ff18ec1292 Refactor window creation functions for improved environment variable handling 2025-06-05 15:08:14 +03:00
Alexandr Stelnykovych
11c4ae39d2 (Windows) Fix false-positive detection of Portmaster UI processes
Problem:
  System browsers launched from the Portmaster UI (e.g., when a user clicks a link) may be incorrectly detected as Portmaster UI child processes.

Solution:
  The Tauri UI app now sets the PORTMASTER_UI_WEBVIEW_PROCESS environment variable for all child WebView processes. Portmaster-core uses this variable to accurately determine if a process is truly related to the Portmaster UI.
2025-05-21 18:08:04 +03:00
Alexandr Stelnykovych
5bc1e779b2 fix: force UI to use IPv4 (127.0.0.1) for API endpoints
Previously, the API endpoint was defined using `localhost`, which could resolve to the IPv6 address `::1`.
This caused issues because the Portmaster core service is listening on `127.0.0.1:817` and only fast-tracking connections to that specific IPv4 address.
2025-05-16 10:56:30 +03:00
Vladimir Stoilov
3411e08500 [WIP] Fix cargo clippy lint build 2024-09-30 18:48:38 +03:00
Vladimir Stoilov
4c340f7b70 [desktop] Fix all clippy warning. Add clippy to CI. 2024-09-05 10:23:04 +03:00
Vladimir Stoilov
05a4093676 [desktop] improve theme detection and add manual theme selection. 2024-09-03 11:32:47 +03:00
Vladimir Stoilov
e162c81978 [desktop] Fix tauri unexpected exits 2024-09-03 11:31:15 +03:00
Vladimir Stoilov
c9ee01d2c4 [desktop] update tauri 2.0.0-rc.3 2024-08-19 17:56:46 +03:00
Vladimir Stoilov
e92da53703 [desktop] Add tauri logs 2024-07-26 15:58:27 +03:00
Vladimir Stoilov
a6e1a37239 [desktop] Add support for system theme detection 2024-07-24 10:53:58 +03:00
Vladimir Stoilov
5b03076fac [desktop] tauri fix main windows size and theme 2024-07-23 17:26:53 +03:00
Vladimir Stoilov
0b72e99edd [cmds] Allow running of tauri in beta 2024-07-08 09:22:11 +03:00
Vladimir Stoilov
a84bbf4262 [desktop] Update tauri to beta.23 2024-07-04 14:13:46 +03:00
Vladimir Stoilov
31b99e7647 [deskotp/tauri] update tauri, remove the need for nsis template 2024-05-31 07:11:42 +03:00
Vladimir Stoilov
ce43e2a81f [desktop/tauri] Fix windows slplash screen close crash 2024-05-30 10:18:51 +03:00
Vladimir Stoilov
a984032621 [desktop] Fix traymenu exit button 2024-05-21 11:38:39 +03:00
Vladimir Stoilov
f15958b091 Migrate tauri to new config 2024-04-24 15:30:46 +03:00
Vladimir Stoilov
338abd6090 Tauri update to beta 2024-04-19 18:26:38 +03:00
Patrick Pacher
347e2d1982 Fix race condition in tauri and window not navigating in release mode 2024-03-27 12:52:52 +01:00
Patrick Pacher
d524bce166 Migrate tauri from portmaster-ui to desktop/tauri. Update build system 2024-03-22 11:45:18 +01:00