ui: remove storage settings

This commit is contained in:
ardocrat
2025-05-31 15:45:15 +03:00
parent 4ef5dd839d
commit 3f3940e752
3 changed files with 0 additions and 62 deletions
-14
View File
@@ -16,7 +16,6 @@ use crate::gui::icons::{DATABASE, GLOBE_SIMPLE};
use crate::gui::platform::PlatformCallbacks;
use crate::gui::views::settings::interface::InterfaceSettingsContent;
use crate::gui::views::settings::network::NetworkSettingsContent;
use crate::gui::views::settings::storage::StorageSettingsContent;
use crate::gui::views::types::ContentContainer;
use crate::gui::views::View;
use crate::gui::Colors;
@@ -27,8 +26,6 @@ pub struct SettingsContent {
interface_settings: InterfaceSettingsContent,
/// Network communication settings.
network_settings: NetworkSettingsContent,
/// File storage settings.
storage_settings: StorageSettingsContent
}
impl Default for SettingsContent {
@@ -36,7 +33,6 @@ impl Default for SettingsContent {
Self {
interface_settings: InterfaceSettingsContent::default(),
network_settings: NetworkSettingsContent::default(),
storage_settings: StorageSettingsContent::default(),
}
}
}
@@ -57,16 +53,6 @@ impl SettingsContent {
// Show network settings.
self.network_settings.ui(ui, cb);
ui.add_space(8.0);
View::horizontal_line(ui, Colors::stroke());
ui.add_space(6.0);
// View::sub_title(ui, format!("{} {}", DATABASE, t!("network_node.data")));
// View::horizontal_line(ui, Colors::stroke());
// ui.add_space(6.0);
// Show storage settings.
self.storage_settings.ui(ui, cb);
}
}
-1
View File
@@ -15,6 +15,5 @@
mod content;
mod interface;
mod network;
mod storage;
pub use content::*;
-47
View File
@@ -1,47 +0,0 @@
// Copyright 2025 The Grim Developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::gui::icons::DATABASE;
use crate::gui::platform::PlatformCallbacks;
use crate::gui::views::types::ContentContainer;
use crate::gui::views::{Modal, View};
use crate::gui::Colors;
/// File storage settings content.
pub struct StorageSettingsContent {
}
impl ContentContainer for StorageSettingsContent {
fn modal_ids(&self) -> Vec<&'static str> {
vec![
]
}
fn modal_ui(&mut self, ui: &mut egui::Ui, modal: &Modal, cb: &dyn PlatformCallbacks) {
}
fn container_ui(&mut self, ui: &mut egui::Ui, cb: &dyn PlatformCallbacks) {
}
}
impl Default for StorageSettingsContent {
fn default() -> Self {
Self {
}
}
}