mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
refactor(autostart)!: rename ManagerExt::autolaunch to autostart (#3614)
* refactor(autostart)!: rename ManagerExt::autolaunch to autostart * Apply suggestion from @amrbashir --------- Co-authored-by: Amr Bashir <github@amrbashir.me>
This commit is contained in:
co-authored by
Amr Bashir
parent
0ecb30e3cb
commit
73ec7ed401
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"autostart": major
|
||||||
|
"autostart-js": major
|
||||||
|
---
|
||||||
|
|
||||||
|
**Breaking:** Renamed `ManagerExt::autolaunch` to `ManagerExt::autostart`.
|
||||||
@@ -72,13 +72,11 @@ impl AutoLaunchManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub trait ManagerExt<R: Runtime> {
|
pub trait ManagerExt<R: Runtime> {
|
||||||
/// TODO: Rename these to `autostart` or `auto_start` in v3
|
fn autostart(&self) -> State<'_, AutoLaunchManager>;
|
||||||
fn autolaunch(&self) -> State<'_, AutoLaunchManager>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R: Runtime, T: Manager<R>> ManagerExt<R> for T {
|
impl<R: Runtime, T: Manager<R>> ManagerExt<R> for T {
|
||||||
/// TODO: Rename these to `autostart` or `auto_start` in v3
|
fn autostart(&self) -> State<'_, AutoLaunchManager> {
|
||||||
fn autolaunch(&self) -> State<'_, AutoLaunchManager> {
|
|
||||||
self.state::<AutoLaunchManager>()
|
self.state::<AutoLaunchManager>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user