mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Do not show windows as topmost.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user