Skip to content

Commit

Permalink
Merge pull request #147 from Leo-Corporation/vNext
Browse files Browse the repository at this point in the history
Version 2.3.0.2203
  • Loading branch information
lpeyr authored Mar 13, 2022
2 parents 461706a + 3102eeb commit 4f82c06
Show file tree
Hide file tree
Showing 41 changed files with 2,844 additions and 2,661 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Desktop
name: .NET CI

on:
push:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Install .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
Expand Down
10 changes: 5 additions & 5 deletions Passliss.Setup/Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Passliss"
#define MyAppVersion "2.2.1.2202"
#define MyAppFullVersion "2.2.1.2202"
#define MyAppVersion "2.3.0.2203"
#define MyAppFullVersion "2.3.0.2203"
#define MyAppPublisher "Léo Corporation"
#define MyAppURL "https://leocorporation.dev/"
#define MyAppExeName "Passliss.exe"
Expand Down Expand Up @@ -45,9 +45,9 @@ Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.i
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "H:\Passliss\Passliss\bin\Release\net5.0-windows\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "H:\Passliss\Xalyus Updater\bin\Release\net5.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "H:\Passliss\Passliss\bin\Release\net5.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "H:\Passliss\Passliss\bin\Release\net6.0-windows\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "H:\Passliss\Xalyus Updater\bin\Release\net6.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "H:\Passliss\Passliss\bin\Release\net6.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down
51 changes: 25 additions & 26 deletions Passliss/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,34 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using Passliss.Windows;
using System.Windows;

namespace Passliss
namespace Passliss;

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
protected override void OnStartup(StartupEventArgs e)
{
protected override void OnStartup(StartupEventArgs e)
SettingsManager.Load(); // Load settings

Global.ChangeTheme(); // Update the theme
Global.ChangeLanguage(); // Change the language

PasswordConfigurationManager.Load(); // Load configurations

Global.SettingsPage = new(); // Create a new settings page
Global.GeneratePage = new(); // Create a new generate page
Global.StrenghtPage = new(); // Create a new strenght page
Global.EncryptPage = new(); // Create a new encryption page

if (Global.Settings.IsFirstRun.Value)
{
new FirstRunWindow().Show(); // Show first run experience
}
else
{
SettingsManager.Load(); // Load settings

Global.ChangeTheme(); // Update the theme
Global.ChangeLanguage(); // Change the language

PasswordConfigurationManager.Load(); // Load configurations

Global.SettingsPage = new(); // Create a new settings page
Global.GeneratePage = new(); // Create a new generate page
Global.StrenghtPage = new(); // Create a new strenght page
Global.EncryptPage = new(); // Create a new encryption page

if (Global.Settings.IsFirstRun.Value)
{
new FirstRunWindow().Show(); // Show first run experience
}
else
{
new MainWindow().Show(); // Open Passliss
}
new MainWindow().Show(); // Open Passliss
}
}
}
Loading

0 comments on commit 4f82c06

Please sign in to comment.