Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Rust / build (macos-latest, stable) (pull_request) Canceled after 0s
Rust / build (ubuntu-latest, stable) (pull_request) Canceled after 0s
Rust / build (windows-latest, stable) (pull_request) Canceled after 0s
24 lines
563 B
Rust
24 lines
563 B
Rust
use gpui::{App, AppContext as _};
|
|
|
|
use super::exit::ExitDialog;
|
|
use super::import::ImportDialog;
|
|
use super::onboarding::OnboardingDialog;
|
|
use super::passphrase::PassphraseDialog;
|
|
use crate::shared::dialogs::open_global;
|
|
|
|
pub fn open_passphrase(cx: &mut App) {
|
|
open_global(PassphraseDialog::new(cx), cx);
|
|
}
|
|
|
|
pub fn open_onboarding(cx: &mut App) {
|
|
open_global(OnboardingDialog::new(cx), cx);
|
|
}
|
|
|
|
pub fn open_import(cx: &mut App) {
|
|
open_global(ImportDialog::new(cx), cx);
|
|
}
|
|
|
|
pub fn open_exit(cx: &mut App) {
|
|
open_global(cx.new(|_| ExitDialog), cx);
|
|
}
|