update
This commit is contained in:
parent
fea9c6052f
commit
0db3ab4358
|
@ -233,11 +233,13 @@ void WingHexAsm::asmCode(QString code) {
|
|||
USINGCONTROL({
|
||||
controller.newFile();
|
||||
controller.insert(0, buffer); // 直接使用 insert 会比 append 更高效一点
|
||||
controller.moveTo(buffer.size());
|
||||
});
|
||||
} else {
|
||||
USINGCONTROL({
|
||||
auto pos = reader.currentOffset();
|
||||
controller.insert(qint64(pos), buffer);
|
||||
controller.moveTo(qint64(pos + ulong(buffer.size())));
|
||||
});
|
||||
}
|
||||
toast(icon, tr("ASMSuccessfully"));
|
||||
|
|
Loading…
Reference in New Issue