mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-12 09:48:40 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df5e562ea6 | ||
|
|
c8fd2346b4 | ||
|
|
cdc308c16b | ||
|
|
67301593c6 |
No files matched your search
@@ -39,7 +39,7 @@ jobs:
|
||||
npm install
|
||||
|
||||
- name: Build the Tauri app
|
||||
uses: tauri-apps/tauri-action@v1
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
||||
@@ -21,3 +21,7 @@ codegen-units = 1
|
||||
lto = true
|
||||
opt-level = "z"
|
||||
strip = true
|
||||
|
||||
[features]
|
||||
default = ["custom-protocol"]
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
@@ -28,7 +28,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
|
||||
// Permet d'activer ou de désactiver le lancement automatique au démarrage de Windows.
|
||||
// On écrit directement dans le registre Windows (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run)
|
||||
// ce qui évite d'avoir à gérer un installateur complexe ou des plugins externes lourds.
|
||||
let hkcu = RegKey::predefined(HKEY_CURRENT_USER);
|
||||
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
|
||||
let run_key = hkcu
|
||||
.open_subkey_with_flags(
|
||||
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
||||
@@ -55,7 +55,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
|
||||
#[tauri::command]
|
||||
fn get_autostart() -> Result<bool, String> {
|
||||
// Lit le registre Windows pour vérifier si l'application est configurée pour démarrer automatiquement.
|
||||
let hkcu = RegKey::predefined(HKEY_CURRENT_USER);
|
||||
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
|
||||
let run_key = hkcu
|
||||
.open_subkey_with_flags(
|
||||
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
||||
|
||||
@@ -48,6 +48,11 @@
|
||||
"security": {
|
||||
"csp": null
|
||||
},
|
||||
"systemTray": {
|
||||
"iconPath": "icons/icon.ico",
|
||||
"iconAsTemplate": false,
|
||||
"menuOnLeftClick": false
|
||||
},
|
||||
"windows": [
|
||||
{
|
||||
"fullscreen": false,
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
// Si exécuté hors de Tauri (ex: navigateur classique), masquer les boutons de fenêtre
|
||||
btnMinimize.style.display = "none";
|
||||
btnClose.style.display = "none";
|
||||
document.querySelector(".setting-toggle").style.display = "none"; // Cacher l'autostart
|
||||
inputAutostart.closest(".setting-toggle").style.display = "none"; // Cacher l'autostart
|
||||
}
|
||||
|
||||
// Événement d'ajout de tâche
|
||||
|
||||
Reference in new issue
Block a user