this repo has no description
at main 435 B view raw
1use std::collections::HashMap; 2 3use tauri::{State, Window}; 4 5use crate::{structs::nodes::Node, utils::config::Config}; 6 7#[tauri::command] 8pub fn load_previous_tabs( 9 window: Window, 10 conf: State<Config>, 11) -> HashMap<String, (Vec<Node>, String, Option<String>, bool)> { 12 let config = conf.store.lock().unwrap(); 13 14 if !config.hide_editor_on_start { 15 window.show().unwrap(); 16 } 17 18 let tabs = config.loaded_tabs.clone(); 19 tabs 20}