mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#932
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/1Remote/1Remote/pull/1002
Author: @Copilot
Created: 10/18/2025
Status: ❌ Closed
Base:
main← Head:copilot/analyze-issue-951📝 Commits (3)
3bc4ec2Initial plan396bb6bFix popup window causing main window to be hidden (Issue #951)bd1cd55Update Shawn.Utils submodule with window reactivation fix📊 Changes
2 files changed (+23 additions, -2 deletions)
View changed files
📝
Shawn.Utils(+1 -1)📝
Ui/View/Host/ProtocolHosts/VmFileTransmitHost.cs(+22 -1)📄 Description
Problem
When file selection dialogs (OpenFileDialog, SaveFileDialog, or FolderBrowserDialog) were opened from popup windows and then closed, the parent main window would be moved to the bottom layer of the window z-order, effectively becoming hidden behind other windows. This created a poor user experience where users had to manually click on the taskbar or use Alt+Tab to bring the main window back to the foreground.
Root Cause
The issue occurred because:
SelectFileHelper.cs(Shawn.Utils submodule) were callingShowDialog()without specifying an owner windowFolderBrowserDialoginVmFileTransmitHost.csalso lacked proper owner window handlingSolution
Changes to Shawn.Utils Submodule
Modified
Shawn.Utils.Wpf/FileSystem/SelectFileHelper.csto properly handle window ownership and reactivation:GetActiveWindow()helper method to retrieve the currently active WPF windowReactivateWindow()helper method to explicitly reactivate a windowOpenFile(),SaveFile(), andOpenFiles()methods to:ShowDialog(ownerWindow)finallyblock to ensure the owner window is reactivated after the dialog closes (even if an exception occurs)Changes to Main Repository
Modified
Ui/View/Host/ProtocolHosts/VmFileTransmitHost.csto fixFolderBrowserDialogbehavior:Wpf32Windowhelper class to wrap WPFWindowobjects for use with Windows Forms dialogs (which require theIWin32Windowinterface)Technical Details
The fix ensures that:
Window.Activate()andWindow.Focus()after any dialog closesfinallyblock guarantees window reactivation even if the user cancels the dialog or an error occursNote on Submodule Changes
The Shawn.Utils changes are in a git submodule. The submodule has been updated locally with a new commit, and this PR updates the parent repository reference to point to the fixed version. Since Shawn.Utils is a separate repository (https://github.com/VShawn/Shawn.Utils), maintainers may need to push these changes to that repository separately.
Testing
Closes #951
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.