Skip to content

Commit

Permalink
Fix window min height style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazaro-Fenergo committed Apr 18, 2022
1 parent 0972ccf commit efce813
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,21 @@ public void AutoUpdateCredentialsCommand()
}


public void GenerateTokenCommand()
public async Task GenerateTokenCommand()
{
//WithExceptionLogging(async () => {
ExecuteAsyncWithLoadingAndExceptionLogging(() => {
// This command is fast, it could run synchronously if required.
// WithExceptionLogging(async () => {
await ExecuteAsyncWithLoadingAndExceptionLogging(() => {
AwsTokenCode = GenerateTokenFromAuthenticatorKey();
Logs = $"CODE: {DateTime.Now.ToString(DATE_FORMAT)}: {AwsTokenCode}";
});
}

public async Task CopyTokenCodeCommand()
{
//WithExceptionLogging(async () => {
ExecuteAsyncWithLoadingAndExceptionLogging(async () => {
// This command is fast, it could run synchronously if required.
// WithExceptionLogging(async () => {
await ExecuteAsyncWithLoadingAndExceptionLogging(async () => {
await Clipboard.SetTextAsync(AwsTokenCode);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:vm="using:AwsCredentialManager.ViewModels"
xmlns:views="clr-namespace:AwsCredentialManager.Views;assembly=AwsCredentialManager"
xmlns:progRing="clr-namespace:AvaloniaProgressRing;assembly=AvaloniaProgressRing"
MinWidth="440" MinHeight="330"
MinWidth="440" MinHeight="333"
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="410"
x:Class="AwsCredentialManager.Views.AwsCredentialManagerForm">

Expand Down
2 changes: 1 addition & 1 deletion src/AwsCredentialManager/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="clr-namespace:AwsCredentialManager.Views;assembly=AwsCredentialManager"
Width="500" Height="360"
MinWidth="440" MinHeight="300"
MinWidth="440" MinHeight="333"
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="360"
x:Class="AwsCredentialManager.Views.MainWindow"
TransparencyLevelHint="AcrylicBlur"
Expand Down

0 comments on commit efce813

Please sign in to comment.