[fractal] directory: Rename set_directory_rooms to append_directory_rooms



commit 2b4c2e8ed6ecdf8fd9bace6761a6ff58f776a800
Author: Daniel Pauls <daniel1708 de+git gmail com>
Date:   Mon Aug 19 17:57:14 2019 +0000

    directory: Rename set_directory_rooms to append_directory_rooms
    
    A function in directory.rs is currently called set_directory_rooms, but
    it's used in a way so that it appends rooms to the directory list.
    
    Renaming the function to append_directory_rooms will clarify what it's
    actually doing.

 fractal-gtk/src/app/backend_loop.rs | 2 +-
 fractal-gtk/src/appop/directory.rs  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/fractal-gtk/src/app/backend_loop.rs b/fractal-gtk/src/app/backend_loop.rs
index e8920a54..d4f73196 100644
--- a/fractal-gtk/src/app/backend_loop.rs
+++ b/fractal-gtk/src/app/backend_loop.rs
@@ -130,7 +130,7 @@ pub fn backend_loop(rx: Receiver<BKResponse>) {
                     APPOP!(set_protocols, (protocols));
                 }
                 Ok(BKResponse::DirectorySearch(rooms)) => {
-                    APPOP!(set_directory_rooms, (rooms));
+                    APPOP!(append_directory_rooms, (rooms));
                 }
 
                 Ok(BKResponse::JoinRoom) => {
diff --git a/fractal-gtk/src/appop/directory.rs b/fractal-gtk/src/appop/directory.rs
index 79f982d0..e2f3fc9a 100644
--- a/fractal-gtk/src/appop/directory.rs
+++ b/fractal-gtk/src/appop/directory.rs
@@ -128,7 +128,7 @@ impl AppOp {
         self.search_rooms(true);
     }
 
-    pub fn set_directory_rooms(&mut self, rooms: Vec<Room>) {
+    pub fn append_directory_rooms(&mut self, rooms: Vec<Room>) {
         for r in rooms.iter() {
             if self.directory.contains(r) {
                 continue;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]