Browse Source

chore: format

merge-requests/2146/head
genofire 3 weeks ago
parent
commit
bb86f69449
  1. 3
      src/application.rs
  2. 9
      src/login/mod.rs

3
src/application.rs

@ -24,7 +24,8 @@ pub(crate) const APP_NAME: &str = "Fractal";
/// The URL of the homepage of the application.
pub(crate) const APP_HOMEPAGE_URL: &str = "https://gitlab.gnome.org/World/fractal/";
/// The URL of the icon of the application.
pub(crate) const APP_ICON_URL: &str = "https://gitlab.gnome.org/uploads/-/system/project/avatar/147/fractal-avatar.png";
pub(crate) const APP_ICON_URL: &str =
"https://gitlab.gnome.org/uploads/-/system/project/avatar/147/fractal-avatar.png";
mod imp {
use std::cell::Cell;

9
src/login/mod.rs

@ -34,9 +34,9 @@ use self::{
session_setup_view::SessionSetupView,
};
use crate::{
APP_HOMEPAGE_URL, APP_ICON_URL, APP_NAME, Application, RUNTIME, SETTINGS_KEY_CURRENT_SESSION, Window,
components::OfflineBanner, prelude::*, secret::Secret, session::Session, spawn, spawn_tokio,
toast,
APP_HOMEPAGE_URL, APP_ICON_URL, APP_NAME, Application, RUNTIME, SETTINGS_KEY_CURRENT_SESSION,
Window, components::OfflineBanner, prelude::*, secret::Secret, session::Session, spawn,
spawn_tokio, toast,
};
/// A page of the login stack.
@ -545,8 +545,7 @@ fn client_registration_data() -> ClientRegistrationData {
let client_uri =
Url::parse(APP_HOMEPAGE_URL).expect("application homepage URL should be a valid URL");
let logo_uri =
Url::parse(APP_ICON_URL).expect("application icon URL should be a valid URL");
let logo_uri = Url::parse(APP_ICON_URL).expect("application icon URL should be a valid URL");
let mut client_metadata = ClientMetadata::new(
ApplicationType::Native,

Loading…
Cancel
Save