Skip to content

Commit

Permalink
Added button that opens log folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 15, 2024
1 parent eb2ee40 commit 38c38e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mirivoice/Assets/Lang/en-US.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<system:String x:Key="menu.help.title">Help</system:String>
<system:String x:Key="menu.help.update">Check Updates</system:String>
<system:String x:Key="menu.help.github">Visit GitHub</system:String>
<system:String x:Key="menu.help.openLogDir">Open Log Directory...</system:String>

<!--editor body 1 -->
<system:String x:Key="editor.input.mult.title">Lines Input</system:String>
Expand Down
1 change: 1 addition & 0 deletions Mirivoice/Assets/Lang/ko-KR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
<system:String x:Key="menu.help.title">도움말</system:String>
<system:String x:Key="menu.help.update">업데이트 확인</system:String>
<system:String x:Key="menu.help.github">GitHub 방문</system:String>
<system:String x:Key="menu.help.openLogDir">로그 폴더 열기...</system:String>

<!--editor body 1 -->
<system:String x:Key="editor.input.mult.title">대사 입력란</system:String>
Expand Down
1 change: 1 addition & 0 deletions Mirivoice/Mirivoice.Core/Managers/PathManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class PathManager
public bool IsInstalled { get; private set; }

public string LogFilePath => Path.Combine(DataPath, "Logs", "log.txt");
public string LogFolderPath => Path.Combine(DataPath, "Logs");
public string VoicerPath => Path.Combine(DataPath, "Voicers");
public string AssetsPath;

Expand Down
4 changes: 4 additions & 0 deletions Mirivoice/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ public async Task SaveProject(bool forceSaveAs = false)
}
}

public async void OnOpenLogDirClick()
{
OS.OpenFolder(MainManager.Instance.PathM.LogFolderPath);
}
public async Task OnOpenButtonClick()
{
if (MainManager.Instance.cmd.IsNeedSave)
Expand Down
2 changes: 2 additions & 0 deletions Mirivoice/Views/MainView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
<MenuItem Header="{DynamicResource menu.help.title}">
<MenuItem Header="{DynamicResource menu.help.update}" Command="{Binding OnUpdateCheckButtonClick}"></MenuItem>
<MenuItem Header="{DynamicResource menu.help.github}" Command="{Binding OnGithubButtonClick}"></MenuItem>
<Separator/>
<MenuItem Header="{DynamicResource menu.help.openLogDir}" Command="{Binding OnOpenLogDirClick}"></MenuItem>
</MenuItem>
</Menu>

Expand Down

0 comments on commit 38c38e0

Please sign in to comment.