mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 02:35:54 +08:00
Fix of empty string in Wifi Config dialog ssid combobox on Mac
This commit is contained in:
parent
e45af4eb54
commit
c0f5a3803e
@ -416,6 +416,7 @@ void WifiScanner::scan()
|
||||
|
||||
for ( const std::string& ssid : ssids)
|
||||
{
|
||||
if (!ssid.empty())
|
||||
m_map[boost::nowide::widen(ssid)] = {};
|
||||
}
|
||||
if (m_map.empty()) {
|
||||
@ -423,6 +424,7 @@ void WifiScanner::scan()
|
||||
{
|
||||
// Second implementation calling "airport" system command
|
||||
get_connected_ssid(m_current_ssid);
|
||||
if (!m_current_ssid.empty())
|
||||
m_map[m_current_ssid] = std::string();
|
||||
}
|
||||
catch (const std::exception&)
|
||||
|
Loading…
x
Reference in New Issue
Block a user