mirror of
https://github.com/priyanshujain/margin.git
synced 2026-10-02 11:07:04 +00:00
changes
This commit is contained in:
1 parent
3c12d9857f
commit
bd44c0ba7e
3 files changed
+25
-9
No files matched your search
+11
-4
@@ -58,11 +58,18 @@ fn build_menu<R: Runtime>(handle: &tauri::AppHandle<R>) -> tauri::Result<Menu<R>
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
let context = tauri::generate_context!();
|
||||
|
||||
let mut builder = tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_updater::Builder::new().build())
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(tauri_plugin_process::init());
|
||||
|
||||
if context.config().plugins.0.contains_key("updater") {
|
||||
builder = builder.plugin(tauri_plugin_updater::Builder::new().build());
|
||||
}
|
||||
|
||||
builder
|
||||
.manage(proofing::new_state())
|
||||
.menu(|handle| build_menu(handle))
|
||||
.on_menu_event(|app, event| {
|
||||
@@ -87,6 +94,6 @@ pub fn run() {
|
||||
proofing::proof_text,
|
||||
proofing::remember_word
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.run(context)
|
||||
.expect("error while running margin");
|
||||
}
|
||||
Reference in new issue
Block a user