fix: renamed details.rs to settings.rs; the name was outdated as the label change to settings
This commit is contained in:
1 parent
d9004f3761
commit
2ea20b0a99
4 files changed
+7
-7
No files matched your search
+5
-5
@@ -136,17 +136,17 @@ impl App {
|
||||
}
|
||||
|
||||
if self.focused == FocusedArea::Settings {
|
||||
match widgets::details::handle_key(
|
||||
match widgets::settings::handle_key(
|
||||
&key_event,
|
||||
self.instances_state.selected_instance(),
|
||||
&self.instance_manager.instances_dir,
|
||||
) {
|
||||
widgets::details::SettingsAction::EditInstance(path)
|
||||
| widgets::details::SettingsAction::EditGlobal(path) => {
|
||||
widgets::settings::SettingsAction::EditInstance(path)
|
||||
| widgets::settings::SettingsAction::EditGlobal(path) => {
|
||||
self.pending_editor = Some(path);
|
||||
return Ok(());
|
||||
}
|
||||
widgets::details::SettingsAction::ToggleDesktop => {
|
||||
widgets::settings::SettingsAction::ToggleDesktop => {
|
||||
if let Some(inst) = self.instances_state.selected_instance() {
|
||||
let name = inst.name.clone();
|
||||
match crate::instance::desktop::toggle(inst) {
|
||||
@@ -173,7 +173,7 @@ impl App {
|
||||
}
|
||||
return Ok(());
|
||||
}
|
||||
widgets::details::SettingsAction::None => {}
|
||||
widgets::settings::SettingsAction::None => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ impl App {
|
||||
self.focused,
|
||||
&mut self.account_state,
|
||||
);
|
||||
widgets::details::render(
|
||||
widgets::settings::render(
|
||||
frame,
|
||||
bottom_chunks[1],
|
||||
self.focused,
|
||||
|
||||
@@ -9,7 +9,7 @@ use ratatui::{
|
||||
|
||||
pub mod account;
|
||||
pub mod content;
|
||||
pub mod details;
|
||||
pub mod settings;
|
||||
pub mod instances;
|
||||
pub mod logs_viewer;
|
||||
pub mod popups;
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user