Some fixes related to clipboard (#2405)
Also: - Fixed capitalization of one method in `LoginDialog.cpp` - Visually improved some strings in `LoginDialog.cpp` - Added utility function getting clipboard content to `Clipboard.cpp` - Made sure to use `crossPlatformCopy` in `UserInfoPopup.cpp`
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "providers/twitch/api/Kraken.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
#include "util/Clipboard.hpp"
|
||||
#include "util/LayoutCreator.hpp"
|
||||
#include "util/PostToThread.hpp"
|
||||
#include "util/Shortcut.hpp"
|
||||
@@ -47,8 +48,8 @@ namespace {
|
||||
[label = label.getElement()] {
|
||||
auto copyText = label->property("copy-text").toString();
|
||||
|
||||
qApp->clipboard()->setText(copyText.isEmpty() ? label->getText()
|
||||
: copyText);
|
||||
crossPlatformCopy(copyText.isEmpty() ? label->getText()
|
||||
: copyText);
|
||||
});
|
||||
|
||||
return label.getElement();
|
||||
|
||||
Reference in New Issue
Block a user