Added an option to reset panel layout (SpartanJ/ecode#675).

Added options to "Reset Global File Associations" and "Reset Project File Associations" (renamed the command names too).
This commit is contained in:
Martín Lucas Golini
2026-01-11 18:25:49 -03:00
parent ac91cedf9c
commit d198f36eca
4 changed files with 75 additions and 19 deletions

View File

@@ -562,6 +562,19 @@ void App::downloadFileWebDialog() {
} );
}
void App::resetPanelsPartitions() {
if ( mProjectSplitter ) {
mConfig.windowState.panelPartition = "15%";
mProjectSplitter->setSplitPartition(
StyleSheetLength( mConfig.windowState.panelPartition ) );
}
if ( mMainSplitter ) {
mConfig.windowState.statusBarPartition = "85%";
mMainSplitter->setSplitPartition(
StyleSheetLength( mConfig.windowState.statusBarPartition ) );
}
}
void App::downloadFileWeb( const std::string& url ) {
UIDownloadWindow::downloadFileWeb( url );
}