[GUI] Do not show windows as topmost.

This commit is contained in:
2025-11-19 21:21:21 +00:00
parent 7791f9f740
commit 6474b83b51
2 changed files with 3 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ using Aaru.Gui.Models;
using Aaru.Gui.Views.Windows; using Aaru.Gui.Views.Windows;
using Aaru.Localization; using Aaru.Localization;
using Aaru.Logging; using Aaru.Logging;
using Avalonia.Controls;
using Avalonia.Threading; using Avalonia.Threading;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
@@ -91,7 +92,7 @@ public partial class DeviceListViewModel : ViewModelBase
var deviceView = new DeviceView var deviceView = new DeviceView
{ {
Topmost = true WindowStartupLocation = WindowStartupLocation.CenterScreen
}; };
var vm = new DeviceViewModel(deviceView, _selectedDevice.Path); var vm = new DeviceViewModel(deviceView, _selectedDevice.Path);

View File

@@ -275,7 +275,7 @@ public partial class MainWindowViewModel : ViewModelBase
var deviceListWindow = new DeviceList var deviceListWindow = new DeviceList
{ {
Topmost = true WindowStartupLocation = WindowStartupLocation.CenterScreen
}; };
deviceListWindow.DataContext = new DeviceListViewModel(deviceListWindow, msbox.InputValue); deviceListWindow.DataContext = new DeviceListViewModel(deviceListWindow, msbox.InputValue);