feat: add keep-screen-on plugin
This commit is contained in:
@ -23,3 +23,4 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = { version = "2.7.0", features = [] }
|
||||
tauri-plugin-log = "2"
|
||||
tauri-plugin-keep-screen-on = "0.1.2"
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_keep_screen_on::init())
|
||||
.setup(|app| {
|
||||
if cfg!(debug_assertions) {
|
||||
app.handle().plugin(
|
||||
|
||||
Reference in New Issue
Block a user