mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-02 08:20:36 +08:00
PrinterWebViewPanel: clearing API key when setting username/pwd credentials and vice versa to keep consistent state passed to webview authentication delegate
This commit is contained in:
parent
b84853655f
commit
a4dbe04ff0
@ -224,8 +224,8 @@ public:
|
||||
|
||||
void send_api_key();
|
||||
void send_credentials();
|
||||
void set_api_key(const std::string& key) { m_api_key = key; }
|
||||
void set_credentials(const std::string& usr, const std::string& psk) { m_usr = usr; m_psk = psk; }
|
||||
void set_api_key(const std::string& key) { m_api_key = key; m_usr.clear(); m_psk.clear(); }
|
||||
void set_credentials(const std::string& usr, const std::string& psk) { m_usr = usr; m_psk = psk; m_api_key.clear(); }
|
||||
void clear() { m_api_key.clear(); m_usr.clear(); m_psk.clear(); m_api_key_sent = false; }
|
||||
void sys_color_changed() override;
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user