← Back to team overview

kicad-developers team mailing list archive

[PATCH] Show the busy cursor while loading libraries

 

Hi,

This patch enables display of the "busy" cursor while schematic
libraries are being loaded. Tested on Linux, Windows 10, and macOS
10.12.

-- 
Chris
>From 4003d34cccfea0b88def73169038fa192a94f85f Mon Sep 17 00:00:00 2001
From: Chris Pavlina <pavlina.chris@xxxxxxxxx>
Date: Wed, 8 Mar 2017 15:10:35 -0500
Subject: [PATCH] Show the busy cursor while loading libraries

---
 eeschema/class_library.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eeschema/class_library.cpp b/eeschema/class_library.cpp
index 22b4a6fbe..0a35a6123 100644
--- a/eeschema/class_library.cpp
+++ b/eeschema/class_library.cpp
@@ -49,6 +49,7 @@
 #include <wx/progdlg.h>
 #include <wx/tokenzr.h>
 #include <wx/regex.h>
+#include <wx/utils.h>
 
 #define DUPLICATE_NAME_MSG  \
     _(  "Library '%s' has duplicate entry name '%s'.\n" \
@@ -554,6 +555,7 @@ void PART_LIBS::LoadAllLibraries( PROJECT* aProject, bool aShowProgress )
     wxString        filename;
     wxString        libs_not_found;
     SEARCH_STACK*   lib_search = aProject->SchSearchS();
+    wxBusyCursor    busy_while_loading;
 
 #if defined(DEBUG) && 0
     lib_search->Show( __func__ );
-- 
2.12.0


Follow ups