mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-15 11:16:31 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06736a32be | ||
|
|
f400b2413d | ||
|
|
df5e562ea6 | ||
|
|
c8fd2346b4 |
No files matched your search
@@ -21,3 +21,7 @@ codegen-units = 1
|
|||||||
lto = true
|
lto = true
|
||||||
opt-level = "z"
|
opt-level = "z"
|
||||||
strip = true
|
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.
|
// 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)
|
// 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.
|
// 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
|
let run_key = hkcu
|
||||||
.open_subkey_with_flags(
|
.open_subkey_with_flags(
|
||||||
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
||||||
@@ -55,7 +55,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
|
|||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
fn get_autostart() -> Result<bool, String> {
|
fn get_autostart() -> Result<bool, String> {
|
||||||
// Lit le registre Windows pour vérifier si l'application est configurée pour démarrer automatiquement.
|
// 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
|
let run_key = hkcu
|
||||||
.open_subkey_with_flags(
|
.open_subkey_with_flags(
|
||||||
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
r"Software\Microsoft\Windows\CurrentVersion\Run",
|
||||||
@@ -89,7 +89,7 @@ fn main() {
|
|||||||
window.hide().unwrap();
|
window.hide().unwrap();
|
||||||
} else {
|
} else {
|
||||||
window.show().unwrap();
|
window.show().unwrap();
|
||||||
window.focus().unwrap();
|
window.set_focus().unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() {
|
SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() {
|
||||||
@@ -102,7 +102,7 @@ fn main() {
|
|||||||
window.hide().unwrap();
|
window.hide().unwrap();
|
||||||
} else {
|
} else {
|
||||||
window.show().unwrap();
|
window.show().unwrap();
|
||||||
window.focus().unwrap();
|
window.set_focus().unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|||||||
@@ -48,6 +48,11 @@
|
|||||||
"security": {
|
"security": {
|
||||||
"csp": null
|
"csp": null
|
||||||
},
|
},
|
||||||
|
"systemTray": {
|
||||||
|
"iconPath": "icons/icon.ico",
|
||||||
|
"iconAsTemplate": false,
|
||||||
|
"menuOnLeftClick": false
|
||||||
|
},
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="todo-widget">
|
<div class="todo-widget">
|
||||||
<!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri -->
|
<!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri -->
|
||||||
<header class="widget-header" data-tauri-drag-region>
|
<header class="widget-header">
|
||||||
<div class="header-left" data-tauri-drag-region>
|
<div class="header-left" data-tauri-drag-region>
|
||||||
<span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span>
|
<span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span>
|
||||||
<h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1>
|
<h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1>
|
||||||
|
|||||||
Reference in new issue
Block a user