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