mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-18 09:14:01 -04:00
fix(modals): adjust focus handling in ClipboardHistoryModal & DankModalHost
This commit is contained in:
@@ -21,7 +21,6 @@ DankModal {
|
||||
|
||||
function show() {
|
||||
open();
|
||||
shouldHaveFocus = true;
|
||||
|
||||
Qt.callLater(function () {
|
||||
if (contentLoader.item) {
|
||||
|
||||
@@ -323,8 +323,7 @@ Item {
|
||||
clickCatcher.item.present();
|
||||
contentWindow.visible = true;
|
||||
opened();
|
||||
shouldHaveFocus = false;
|
||||
Qt.callLater(() => shouldHaveFocus = Qt.binding(() => shouldBeVisible));
|
||||
shouldHaveFocus = Qt.binding(() => shouldBeVisible);
|
||||
}
|
||||
|
||||
on_SurfaceFrameReadyChanged: {
|
||||
|
||||
Reference in New Issue
Block a user