Skip to content

Commit

Permalink
Reset saved window positions (this will need also new settings for DP…
Browse files Browse the repository at this point in the history
…I in future)
  • Loading branch information
JosefNemec committed Nov 28, 2021
1 parent f43a267 commit 17a0427
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion source/Playnite.DesktopApp/Windows/AddonsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public AddonsWindow() : base()
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, nameof(AddonsWindow), PlayniteApplication.Current.AppSettings.WindowPositions);
positionManager = new WindowPositionHandler(this, "AddonsWindow_2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public CategoryConfigWindow() : base()
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, "CategoryConfig", PlayniteApplication.Current.AppSettings.WindowPositions);
positionManager = new WindowPositionHandler(this, "CategoryConfig_V2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public override WindowBase CreateNewWindowInstance()

public partial class DatabaseFieldsManagerWindow : WindowBase
{
public DatabaseFieldsManagerWindow() : base(nameof(DatabaseFieldsManagerWindow))
public DatabaseFieldsManagerWindow() : base("DatabaseFieldsManagerWindow_V2")
{
InitializeComponent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override WindowBase CreateNewWindowInstance()
/// </summary>
public partial class EmulatedGameImportWindow : WindowBase
{
public EmulatedGameImportWindow() : base(nameof(EmulatedGameImportWindow))
public EmulatedGameImportWindow() : base("EmulatedGameImportWindow_V2")
{
InitializeComponent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override WindowBase CreateNewWindowInstance()
/// </summary>
public partial class EmulatorImportWindow : WindowBase
{
public EmulatorImportWindow() : base(nameof(EmulatorImportWindow))
public EmulatorImportWindow() : base("EmulatorImportWindow_V2")
{
InitializeComponent();
}
Expand Down
2 changes: 1 addition & 1 deletion source/Playnite.DesktopApp/Windows/EmulatorsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override WindowBase CreateNewWindowInstance()
/// </summary>
public partial class EmulatorsWindow : WindowBase
{
public EmulatorsWindow() : base(nameof(EmulatorsWindow))
public EmulatorsWindow() : base("EmulatorsWindow_V2")
{
InitializeComponent();
}
Expand Down
2 changes: 1 addition & 1 deletion source/Playnite.DesktopApp/Windows/GameEditWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public GameEditWindow() : base()
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, "EditGame", PlayniteApplication.Current.AppSettings.WindowPositions);
positionManager = new WindowPositionHandler(this, "EditGame_V2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public GoogleImageDownloadWindow() : base()
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, "GoogleImageDownload", PlayniteApplication.Current.AppSettings.WindowPositions);
positionManager = new WindowPositionHandler(this, "GoogleImageDownload_V2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public override WindowBase CreateNewWindowInstance()
/// </summary>
public partial class LibraryIntegrationsWindow : WindowBase
{
public LibraryIntegrationsWindow() : base(nameof(LibraryIntegrationsWindow))
public LibraryIntegrationsWindow() : base("LibraryIntegrationsWindow_V2")
{
InitializeComponent();
}
Expand Down
4 changes: 2 additions & 2 deletions source/Playnite.DesktopApp/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public MainWindow() : base()
{
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, "Main", PlayniteApplication.Current.AppSettings.WindowPositions);
{
positionManager = new WindowPositionHandler(this, "Main_V2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public MetadataComparisonWindow() : base()
InitializeComponent();
if (PlayniteApplication.Current.AppSettings != null)
{
positionManager = new WindowPositionHandler(this, " MetadataComparison", PlayniteApplication.Current.AppSettings.WindowPositions);
positionManager = new WindowPositionHandler(this, "WindowPositionHandler_V2", PlayniteApplication.Current.AppSettings.WindowPositions);
}
}
}
Expand Down

0 comments on commit 17a0427

Please sign in to comment.